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

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

Description

This is a dynamic filter based on the media scope. eg:

  • ‘bp_media_set_groups_scope_args’
  • ‘bp_media_set_friends_scope_args’

To see how this filter is used, plugin devs should check out:

Parameters

(array) Media query clauses.

  • (array) Media arguments for your custom scope. See BP_Media_Query::_construct() for more details. }
    • 'override'
      (array) Optional. Override existing media arguments passed by $r.

$r

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

Source

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

Changelog

Changelog
Version Description
BuddyBoss 1.1.9 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.