BP_Settings_Component::setup_globals( array $args = array() )
Setup globals.
Description
The BP_SETTINGS_SLUG constant is deprecated, and only used here for backwards compatibility.
Parameters
- $args
-
(array) (Optional) Array of arguments.
Default value: array()
Source
File: bp-settings/classes/class-bp-settings-component.php
public function setup_globals( $args = array() ) { // Define a slug, if necessary. if ( ! defined( 'BP_SETTINGS_SLUG' ) ) { define( 'BP_SETTINGS_SLUG', $this->id ); } // All globals for settings component. parent::setup_globals( array( 'slug' => BP_SETTINGS_SLUG, 'has_directory' => false, ) ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.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.