BP_Settings_Component::setup_globals( array $args = array() )

Setup globals.


Description Description

The BP_SETTINGS_SLUG constant is deprecated, and only used here for backwards compatibility.


Parameters Parameters

$args

(Optional) Array of arguments.

Default value: array()


Top ↑

Source 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,
		) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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