Skip to:
Content
Pages
Categories
Search
Top
Bottom

Hide activity updates in member directory


  • bbullwinkelhb
    Participant

    @bbullwinkelhb

    Hi folks,

    I need help – we are running BuddyPress as a social intranet at our company and I need to hide the last activity updates of the users after their names listed in the member directory (WordPress v4.7.3, BuddyPress v.2.8.2, Theme: Catch Box). Preferably without child themes. Thx for your help!

Viewing 4 replies - 1 through 4 (of 4 total)

  • shanebp
    Moderator

    @shanebp

    Since you don’t want to use the child theme / template approach, you could set the update to an empty string…

    function filter_bp_get_member_latest_update( $update_content, $r ) { 
        $update_content = '';
        return $update_content; 
    }; 
    add_filter( 'bp_get_member_latest_update', 'filter_bp_get_member_latest_update', 10, 2 ); 

    bbullwinkelhb
    Participant

    @bbullwinkelhb

    Thx shanebp, and where do I have to include thie code?


    shanebp
    Moderator

    @shanebp

    Put it in your theme/functions.php


    bbullwinkelhb
    Participant

    @bbullwinkelhb

    Any specific section within the functions.php?

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Skip to toolbar