This topic has 4 replies, 3 voices, and was last updated 11 years by notime.

  • Author
  • #4491
     cajoejoe
    Participant

    Hello again..

    is there away to disable public message form the users profile, and leaving private messaging only ?

    Thanks in advance.

    #4531
     SQadmin
    Keymaster

    Hi,
    THis code added to sweetdate-child/functions.php does the trick:

    COPY CODE
    
    function remove_public_message_button() {
    remove_filter( 'bp_member_header_actions','bp_send_public_message_button', 20);
    
    }
    add_action( 'bp_member_header_actions', 'remove_public_message_button' );
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #4774
     notime
    Participant

    Code does not work 🙁

    #4805
     notime
    Participant

    OK this code worked when I pasted in main functions.php not child. Could rouge code be causing this issue to not pick up?

    #4807
     notime
    Participant

    Yep fixed it, it was rouge code.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Disabling public Message’ is closed to new replies.

Log in with your credentials

Forgot your details?