[ 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      $bp = buddypress();
  21  
  22      // Refresh the group member count meta.
  23      groups_update_groupmeta( $bp->groups->current_group->id, 'total_member_count', groups_get_total_member_count( $bp->groups->current_group->id ) );
  24  
  25      /**
  26       * Fires before the loading of a group's Members page.
  27       *
  28       * @since 1.0.0
  29       *
  30       * @param int $id ID of the group whose members are being displayed.
  31       */
  32      do_action( 'groups_screen_group_members', $bp->groups->current_group->id );
  33  
  34      /**
  35       * Filters the template to load for a group's Members page.
  36       *
  37       * @since 1.0.0
  38       *
  39       * @param string $value Path to a group's Members template.
  40       */
  41      bp_core_load_template( apply_filters( 'groups_template_group_members', 'groups/single/home' ) );
  42  }


Generated: Mon Oct 14 01:01:37 2019 Cross-referenced by PHPXref 0.7.1