AppCommunity Activity Type Filter
<?php | |
// this code needs to go in a plugin | |
add_filter('bp_rest_activity_get_items_query_args', function( $args, $request ) { | |
// you can change the default value of activity type | |
$args['filter']['action'] = array('new_blog_post', 'activity_update'); | |
return $args; | |
}, 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment