mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-06-01 05:28:27 +08:00
* General code clean-up. * php5ize the loader. * Remove closing php tags. * Limit creation of one-time-use variables. * Bail early instead of wrap in big if statements. git-svn-id: https://buddypress.svn.wordpress.org/trunk@6317 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
57 lines
1.2 KiB
PHP
57 lines
1.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* BuddyPress Settings Template Functions
|
|
*
|
|
* @package BuddyPress
|
|
* @subpackage SettingsTemplate
|
|
*/
|
|
|
|
// Exit if accessed directly
|
|
if ( !defined( 'ABSPATH' ) ) exit;
|
|
|
|
/**
|
|
* Output the settings component slug
|
|
*
|
|
* @package BuddyPress
|
|
* @subpackage SettingsTemplate
|
|
* @since BuddyPress (1.5)
|
|
*
|
|
* @uses bp_get_settings_slug()
|
|
*/
|
|
function bp_settings_slug() {
|
|
echo bp_get_settings_slug();
|
|
}
|
|
/**
|
|
* Return the settings component slug
|
|
*
|
|
* @package BuddyPress
|
|
* @subpackage SettingsTemplate
|
|
* @since BuddyPress (1.5)
|
|
*/
|
|
function bp_get_settings_slug() {
|
|
return apply_filters( 'bp_get_settings_slug', buddypress()->settings->slug );
|
|
}
|
|
|
|
/**
|
|
* Output the settings component root slug
|
|
*
|
|
* @package BuddyPress
|
|
* @subpackage SettingsTemplate
|
|
* @since BuddyPress (1.5)
|
|
*
|
|
* @uses bp_get_settings_root_slug()
|
|
*/
|
|
function bp_settings_root_slug() {
|
|
echo bp_get_settings_root_slug();
|
|
}
|
|
/**
|
|
* Return the settings component root slug
|
|
*
|
|
* @package BuddyPress
|
|
* @subpackage SettingsTemplate
|
|
* @since BuddyPress (1.5)
|
|
*/
|
|
function bp_get_settings_root_slug() {
|
|
return apply_filters( 'bp_get_settings_root_slug', buddypress()->settings->root_slug );
|
|
}
|