buddypress/bp-settings/bp-settings-template.php
John James Jacoby 6a6bb69f53 Tag 1.5 Beta 1
git-svn-id: https://buddypress.svn.wordpress.org/tags/1.5-beta-1@4894 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2011-07-29 03:16:17 +00:00

60 lines
1.2 KiB
PHP

<?php
/**
* BuddyPress Settings Template Functions
*
* @package BuddyPress
* @subpackage Settings Template
*/
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;
/**
* Output the settings component slug
*
* @package BuddyPress
* @subpackage Settings Template
* @since BuddyPress 1.3
*
* @uses bp_get_settings_slug()
*/
function bp_settings_slug() {
echo bp_get_settings_slug();
}
/**
* Return the settings component slug
*
* @package BuddyPress
* @subpackage Settings Template
* @since BuddyPress 1.3
*/
function bp_get_settings_slug() {
global $bp;
return apply_filters( 'bp_get_settings_slug', $bp->settings->slug );
}
/**
* Output the settings component root slug
*
* @package BuddyPress
* @subpackage Settings Template
* @since BuddyPress 1.3
*
* @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 Settings Template
* @since BuddyPress 1.3
*/
function bp_get_settings_root_slug() {
global $bp;
return apply_filters( 'bp_get_settings_root_slug', $bp->settings->root_slug );
}
?>