Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Activity, Groups Cluttered?


Boone Gorges
Keymaster

@boonebgorges

@modemlooper @scotm – Check out the Filtering Options at https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/. For example, if you want the main site activity stream to show only updates, use something like this in functions.php of your theme:

function my_custom_query_filter( $query_string ) {
global $bp;
if ( bp_is_activity_component() && !$bp->displayed_user->id )
$query_string .= '&action=activity_update';

return $query_string;
}
add_filter( 'bp_dtheme_ajax_querystring', 'my_custom_query_filter' );

Play around with that conditional statement and the query string arguments to make the activity stream show what you want it to show.

Skip to toolbar