Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: filter sitewide activity stream by specific group


Leland
Participant

@northcreatif

Okay I have pieced it together – Here we are.

Place the following code in your child-theme functions file:

function announce_group_by_default( $query_string ) {
global $bp;
if ( !$query_string )
$query_string = '';
if ( ($bp->current_component == BP_ACTIVITY_SLUG || !$bp->current_component) ) {
if ( strpos( $query_string, 'action' ) == 0 )
$query_string .= '&type=activity_update&object=groups&primary_id=2';
}
return $query_string;
}
add_filter( 'bp_dtheme_ajax_querystring', 'announce_group_by_default' );

Skip to toolbar