BuddyDev

Search

[Resolved] Delete public message

Tagged: 

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

    Hello!

    I want to remove the “public message option” from my site https://vuxenflirta.se/. Can you please help me with that.

    Note the media sites is NSFW

    Best regards
    Anders Hidman

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #32940

    Hello Anders,

    Thank you for posting. Try the following code to hide the “Public Message” button

    
    
    add_filter( 'bp_get_send_public_message_button', '__return_empty_array' );
    
    

    Regards
    Ravi

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

    Thanks for your quick reply, but I forgot to mention that my site is not selfhosted, so I can not enter that code. There is no CSS snippet that can fix it instead?

    BR
    Anders

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on #32944

    Hello Anders.

    you can use css display property to hide that button.

    
    #post-mention {
       display: none;
    }
    
    

    Selector may be different in your case.

    Regards
    Ravi

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

    Thank so very much!

The topic ‘ [Resolved] Delete public message’ is closed to new replies.

This topic is: resolved