HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/intranet.kauko.lt/wp-content/plugins/buddypress/bp-xprofile/screens/public.php
<?php
/**
 * XProfile: User's "Profile" screen handler
 *
 * @package BuddyPress
 * @subpackage XProfileScreens
 * @since 3.0.0
 */

/**
 * Handles the display of the profile page by loading the correct template file.
 *
 * @since 1.0.0
 *
 */
function xprofile_screen_display_profile() {
	$new = isset( $_GET['new'] ) ? $_GET['new'] : '';

	/**
	 * Fires right before the loading of the XProfile screen template file.
	 *
	 * @since 1.0.0
	 *
	 * @param string $new $_GET parameter holding the "new" parameter.
	 */
	do_action( 'xprofile_screen_display_profile', $new );

	$templates = array(
		/**
		 * Filters the template to load for the XProfile screen.
		 *
		 * @since 1.0.0
		 *
		 * @param string $template Path to the XProfile template to load.
		 */
		apply_filters( 'xprofile_template_display_profile', 'members/single/home' ),
		'members/single/index',
	);

	bp_core_load_template( $templates );
}