[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Settings: User's "Settings" screen handler. 4 * 5 * @package BuddyPress 6 * @subpackage SettingsScreens 7 * @since 3.0.0 8 */ 9 10 /** 11 * Show the general settings template. 12 * 13 * @since 1.5.0 14 */ 15 function bp_settings_screen_general() { 16 17 if ( bp_action_variables() ) { 18 bp_do_404(); 19 return; 20 } 21 22 /** 23 * Filters the template file path to use for the general settings screen. 24 * 25 * @since 1.6.0 26 * 27 * @param string $value Directory path to look in for the template file. 28 */ 29 bp_core_load_template( apply_filters( 'bp_settings_screen_general_settings', 'members/single/settings/general' ) ); 30 } 31 32 /** 33 * Removes 'Email' sub nav, if no component has registered options there. 34 * 35 * @since 2.2.0 36 */ 37 function bp_settings_remove_email_subnav() { 38 if ( ! has_action( 'bp_notification_settings' ) ) { 39 bp_core_remove_subnav_item( BP_SETTINGS_SLUG, 'notifications' ); 40 } 41 } 42 add_action( 'bp_actions', 'bp_settings_remove_email_subnav' );
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Dec 22 01:00:54 2024 | Cross-referenced by PHPXref 0.7.1 |