[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Groups: Single group "Members" screen handler
   4   *
   5   * @package BuddyPress
   6   * @subpackage GroupsScreens
   7   * @since 3.0.0
   8   */
   9  
  10  /**
  11   * Handle the display of a group's Members page.
  12   *
  13   * @since 1.0.0
  14   */
  15  function groups_screen_group_members() {
  16  
  17      if ( ! bp_is_single_item() ) {
  18          return false;
  19      }
  20  
  21      $bp = buddypress();
  22  
  23      /**
  24       * Fires before the loading of a group's Members page.
  25       *
  26       * @since 1.0.0
  27       *
  28       * @param int $id ID of the group whose members are being displayed.
  29       */
  30      do_action( 'groups_screen_group_members', $bp->groups->current_group->id );
  31  
  32      /**
  33       * Filters the template to load for a group's Members page.
  34       *
  35       * @since 1.0.0
  36       *
  37       * @param string $value Path to a group's Members template.
  38       */
  39      bp_core_load_template( apply_filters( 'groups_template_group_members', 'groups/single/home' ) );
  40  }


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