$loop['scope'] = 'following'; not working in plugin
-
For some reason the following code to alter the activity query will not work from my plugin
function my_filter_activity( $loop ) { if ( bp_is_current_action( 'just-me' )) { $loop['scope'] = 'following'; } return $loop; } add_filter( 'bp_after_has_activities_parse_args', 'my_filter_activity' );
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘$loop['scope'] = 'following'; not working in plugin’ is closed to new replies.