apply_filters( "bp_activity_set_{$scope}_scope_args", array , array $r )

Plugins can hook here to set their activity arguments for custom scopes.

Description 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:

Top ↑

Parameters Parameters

(array) 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.


(array) Current activity arguments passed in BP_Activity_Activity::get().

Source Source

File: bp-activity/classes/class-bp-activity-activity.php

View on Trac

Top ↑

Changelog Changelog

Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.