Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Trouble with custom activity function

@henrywright

Moderator

Ah OK, cool. In that case you may also be interested to hear about bp_parse_args(). I think it’s a better way of doing what you want. This approach will also handle the loop pagination for you. For example:

function my_func( $ret ) {
    // Your custom stuff here. 
    return $ret;
}
add_filter( 'bp_after_has_activities_parse_args', 'my_func' );

See the Using bp_parse_args() to filter BuddyPress template loops article for a complete guide.

Skip to toolbar