[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-xprofile/screens/ -> public.php (source)

   1  <?php
   2  /**
   3   * XProfile: User's "Profile" screen handler
   4   *
   5   * @package BuddyPress
   6   * @subpackage XProfileScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Handles the display of the profile page by loading the correct template file.
  12   *
  13   * @since 1.0.0
  14   *
  15   */
  16  function xprofile_screen_display_profile() {
  17      $new = isset( $_GET['new'] ) ? $_GET['new'] : '';
  18  
  19      /**
  20       * Fires right before the loading of the XProfile screen template file.
  21       *
  22       * @since 1.0.0
  23       *
  24       * @param string $new $_GET parameter holding the "new" parameter.
  25       */
  26      do_action( 'xprofile_screen_display_profile', $new );
  27  
  28      /**
  29       * Filters the template to load for the XProfile screen.
  30       *
  31       * @since 1.0.0
  32       *
  33       * @param string $template Path to the XProfile template to load.
  34       */
  35      bp_core_load_template( apply_filters( 'xprofile_template_display_profile', 'members/single/home' ) );
  36  }


Generated: Sat Dec 7 01:00:57 2024 Cross-referenced by PHPXref 0.7.1