Showing only events in activity stream
-
I want to show only the Events in the activity stream, with some filtering on when they are happening.
So far i constructed the code below in my functions.php, but the BP says
“Sorry, there was no activity found. Please try a different filter.”function bpfr_filtering_activity( $retval ) {
// activities to filter on, comma separated
$retval[‘object’] = ‘new_event’;
return $retval;
}
add_filter( ‘bp_before_has_activities_parse_args’, ‘bpfr_filtering_activity’ );
?>Please help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Showing only events in activity stream’ is closed to new replies.