Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I prevent a particular member to send a private message to the rest…

  • @mohammad-sy

    Participant

    How can I prevent a particular member to send a private message to the rest of the members?

Viewing 1 replies (of 1 total)
  • @danbp

    Participant

    Try this:

    function mohammad_remove_private_message_button( $button ) {
    $user_id = bp_loggedin_user_id();
    
        if ( $user_id == '37' ) // the user ID
    	$button = '';
    
         return $button;
    }
    add_filter( 'bp_get_send_message_button', 'mohammad_remove_private_message_button', 1 , 1 );

    More details here:

    [Resolved] how hide tab only for user? not remove/disable

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar