[ad_1]
public function show_chat_box_metabox( $role ) {
if($role === 'custome_role'){
$unique_key = 'blog_'.$post->ID.'';
$thread_id = $this->get_unique_conversation_id_only($unique_key);
if( $thread_id > 1){
echo '<div class="custom-content">';
echo Better_Messages()->functions->get_conversation_layout($thread_id);
echo '</div>';
}
}
}
- How to enable users with a custom role to invite more participants to private conversations and convert them into group conversations
- They can view the conversation even if they have not participated, similar to an admin.
- The above Condition For this function Only.