Code snippets for hiding the report user buttons?

  • Participant
    Level: Yogi
    Posts: 1105
    calu on #37504

    Hi there, I’m using these code snippets for hiding the block user button in the profile header and directory. I’m looking for a similar way of hiding the Report user button, but i can’t find the right function for the buttons in the plugin code, can you help?

    add_filter( 'bublock_show_button_in_profile_header', '__return_false' );
    add_filter( 'bublock_show_button_in_members_directory', '__return_false' );


  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2926
    Ravi on #37516

    Hello Carsten,

    Thank you for using the plugin. You do not need any custom code for hiding buttons. ‘BuddyPress Block Users’ already offer a setting named ‘Button locations’ under Settings > BuddyPress Block Users > General settings.


You must be logged in to reply to this topic.

This topic is: not resolved