xprofile_screen_display_profile

  • do_action( 'xprofile_screen_display_profile', $new )

    Source Reference:

    • Component: BuddyPress:: bp-xprofile
      File: /bp-xprofile/bp-xprofile-screens.php :: Trac Source Line: 20
      /**
       * Handles the display of the profile page by loading the correct template file.
       *
       * @package BuddyPress XProfile
       * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename)
       */
      function xprofile_screen_display_profile() {
      	$new = isset( $_GET['new'] ) ? $_GET['new'] : '';
      
      	do_action( 'xprofile_screen_display_profile', $new );
      	bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'members/single/home' ) );
      }
      
      /**
       * Handles the display of the profile edit page by loading the correct template file.
       * Also checks to make sure this can only be accessed for the logged in users profile.
       *
       * @package BuddyPress XProfile
       * @uses bp_is_my_profile() Checks to make sure the current user being viewed equals the logged in user
       * @uses bp_core_load_template() Looks for and loads a template file within the current member theme (folder/filename)
      

Comments are closed.