HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/locationdebateau/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' );