HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/gopalak/public_html/wp-content/plugins/buddypress/bp-settings/screens/general.php
<?php
/**
 * Settings: User's "Settings" screen handler.
 *
 * @package BuddyPress
 * @subpackage SettingsScreens
 * @since 3.0.0
 */

/**
 * Show the general settings template.
 *
 * @since 1.5.0
 */
function bp_settings_screen_general() {

	if ( bp_action_variables() ) {
		bp_do_404();
		return;
	}

	$templates = array(
		/**
		 * Filters the template file path to use for the general settings screen.
		 *
		 * @since 1.6.0
		 *
		 * @param string $template Directory path to look in for the template file.
		 */
		apply_filters( 'bp_settings_screen_general_settings', 'members/single/settings/general' ),
		'members/single/index',
	);

	bp_core_load_template( $templates );
}

/**
 * Removes 'Email' sub nav, if no component has registered options there.
 *
 * @since 2.2.0
 */
function bp_settings_remove_email_subnav() {
	if ( ! has_action( 'bp_notification_settings' ) ) {
		bp_core_remove_subnav_item( bp_get_settings_slug(), 'notifications' );
	}
}
add_action( 'bp_actions', 'bp_settings_remove_email_subnav' );