Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to use bp_after_has_activities_parse_args with activity filter by


  • nm
    Participant

    @nahummadrid

    function my_bp_activities_include_activity_types( $retval ) {
    // only allow the following activity types to be shown
        $retval['action'] = array(
          'activity_update',
            //'activity_comment',
            'new_blog_post',
            //'new_blog_comment',
            //'friendship_created',
            //'created_group',
        );
     
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_include_activity_types' );
    

    This is what is suggested around the forums, but as soon as this is added, the filter by options stop working.

    Same goes for bp_after_has_activities_parse_args when setting parameters for followers/freinds only. Is there something missing?

  • You must be logged in to reply to this topic.
Skip to toolbar