BuddyDev

Search

Code snippets for hiding the report user buttons?

  • Participant
    Level: Yogi
    Posts: 1117
    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' );
    

    Regards
    Carsten

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    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.

    Regards
    Ravi

You must be logged in to reply to this topic.

This topic is: not resolved