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

Parameters

$args

(Optional) See BP_Component::setup_globals() for a description.

Default value: array()

Source

File: bp-invites/classes/class-bp-invites-component.php

160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
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

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.