Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Filter the Activity Stream to Status Updates ONLY – Not Working

@takinglife2themax

Participant

Alright, I have an update.

It turns out that BuddyPress Activity Plus was not to blame after all. For some reason, when I use $retval['object'] = 'status'; it only shows activity updates that I’ve just submitted. Once I refresh the page, the stream is empty again.

So I changed the function you provided to try to get around this, and to be conditional to the home page of my eX-Stream site only:

		function bpfr_filtering_activity( $retval ) {
			global $blog_id;
			
			// activities to filter on, comma separated
			if ( $blog_id == 13 && is_front_page() ) {
				$retval['action'] = 'activity_update';
			}
			
			return $retval;
			}	
		add_filter( 'bp_after_has_activities_parse_args', 'bpfr_filtering_activity' );
Skip to toolbar