apply_filters( "bp_activity_set_{$scope}_scope_args", array , array $r )
Plugins can hook here to set their activity arguments for custom scopes.
Description
This is a dynamic filter based on the activity scope. eg:
- ‘bp_activity_set_groups_scope_args’
- ‘bp_activity_set_friends_scope_args’
To see how this filter is used, plugin devs should check out:
- bp_groups_filter_activity_scope() – used for ‘groups’ scope
- bp_friends_filter_activity_scope() – used for ‘friends’ scope
Parameters
-
Activity query clauses.
- (array) Activity arguments for your custom scope. See BP_Activity_Query::_construct() for more details. }
- 'override'
(array) Optional. Override existing activity arguments passed by $r.
- 'override'
- (array) Activity arguments for your custom scope. See BP_Activity_Query::_construct() for more details. }
- $r
-
Current activity arguments passed in BP_Activity_Activity::get().
Source
Changelog
Version | Description |
---|---|
BuddyPress 2.2.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.