xprofile_screen_display_profile()
Handles the display of the profile page by loading the correct template file.
Description
Source
File: bp-xprofile/screens/public.php
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | function xprofile_screen_display_profile() { $new = isset( $_GET [ 'new' ] ) ? $_GET [ 'new' ] : '' ; /** * Fires right before the loading of the XProfile screen template file. * * @since BuddyPress 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 BuddyPress 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' ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.