[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-groups/screens/single/ -> home.php (source)

   1  <?php
   2  /**
   3   * Groups: Single group "Home" screen handler
   4   *
   5   * @package BuddyPress
   6   * @subpackage GroupsScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Handle the loading of a single group's page.
  12   *
  13   * @since 1.0.0
  14   */
  15  function groups_screen_group_home() {
  16  
  17      if ( ! bp_is_single_item() ) {
  18          return false;
  19      }
  20  
  21      /**
  22       * Fires before the loading of a single group's page.
  23       *
  24       * @since 1.0.0
  25       */
  26      do_action( 'groups_screen_group_home' );
  27  
  28      /**
  29       * Filters the template to load for a single group's page.
  30       *
  31       * @since 1.0.0
  32       *
  33       * @param string $value Path to a single group's template to load.
  34       */
  35      bp_core_load_template( apply_filters( 'groups_template_group_home', 'groups/single/home' ) );
  36  }


Generated: Sun Dec 22 01:00:54 2024 Cross-referenced by PHPXref 0.7.1