BP_Invites_Component::setup_globals( array $args = array() )
Set up component global data.
Description
The BP_INVITES_SLUG constant is deprecated, and only used here for backwards compatibility.
See also
- BP_Component::setup_globals(): for a description of arguments.
Parameters
- $args
-
(Optional) See BP_Component::setup_globals() for a description.
Default value: array()
Source
File: bp-invites/classes/class-bp-invites-component.php
public function setup_globals( $args = array() ) { $bp = buddypress(); // Define a slug, if necessary. if ( ! defined( 'BP_INVITES_SLUG' ) ) { define( 'BP_INVITES_SLUG', $this->id ); } // All globals for invites component. // Note that global_tables is included in this array. $args = array( 'slug' => BP_INVITES_SLUG, 'root_slug' => isset( $bp->pages->invites->slug ) ? $bp->pages->invites->slug : BP_INVITES_SLUG, 'has_directory' => false, ); parent::setup_globals( $args ); /* Single Invite Globals **********************************************/ }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.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.