xprofile_screen_display_profile()

Handles the display of the profile page by loading the correct template file.


Source Source

File: bp-xprofile/screens/public.php

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 );

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


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.