Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Hiding stuff from the Activity stream

@danbp

Participant

Recently introduced function bp_parse_args allows since 2.0 to modify easely your templates. Faster and lighter than a plugin.

Using bp_parse_args() to filter BuddyPress template loops

As example, show only updates on the SWA (add snippet to bp-custom.php or child-theme functions.php)

function make_swa_show_notice_only( $retval ) {	
	
	if ( bp_is_page( 'activity' ) ) {
	$retval['action'] = 'activity_update';					
	}
	
	return $retval;
	
	}
add_filter( 'bp_after_has_activities_parse_args', 'make_swa_show_notice_only' );
Skip to toolbar