BuddyDev

Search

[Resolved] Remove public message

  • Participant
    Level: Enlightened
    Posts: 58
    Anders Hidman on #37520

    Hi!
    Is there any way to remove the ability to send public messages in BuddyPress profiles, I would be very grateful. I wish it was only possible to send private messages

    Best regards
    Anders Hidman
    Sweden

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #37534

    Hello Anders,

    Thank you for asking. Please use the following code in your ‘bp-custom.php’ or ‘functions.php’ file of the active theme.

    
    add_filter( 'bp_get_send_public_message_button', '__return_empty_array' );
    
    

    Please do let me know if it works or not.

    Regards
    Ravi

  • Participant
    Level: Enlightened
    Posts: 58
    Anders Hidman on #37820

    Thanks! It works very well!

  • Participant
    Level: Enlightened
    Posts: 29
    Gisela Zechner on #51315

    Thanks – it also works very well for me!

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #51331

    Hello Gisela,

    Thank you for the acknowledgement.

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: resolved