Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
BP_Admin::setup_globals()
Set admin-related globals.
Description Description
Source Source
File: bp-core/classes/class-bp-admin.php
private function setup_globals() { $bp = buddypress(); // Paths and URLs $this->admin_dir = trailingslashit( $bp->plugin_dir . 'bp-core/admin' ); // Admin path. $this->admin_url = trailingslashit( $bp->plugin_url . 'bp-core/admin' ); // Admin url. $this->images_url = trailingslashit( $this->admin_url . 'images' ); // Admin images URL. $this->css_url = trailingslashit( $this->admin_url . 'css' ); // Admin css URL. $this->js_url = trailingslashit( $this->admin_url . 'js' ); // Admin css URL. // Main settings page. $this->settings_page = bp_core_do_network_admin() ? 'settings.php' : 'options-general.php'; // Main capability. $this->capability = bp_core_do_network_admin() ? 'manage_network_options' : 'manage_options'; }
Changelog Changelog
Version | Description |
---|---|
1.6.0 | Introduced. |