groups_get_current_group

  • apply_filters( 'groups_get_current_group', $current_group )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-functions.php :: Trac Source Line: 432
       * @since 1.5
       *
       * @return obj The current group object
       */
      function groups_get_current_group() {
      	global $bp;
      
      	$current_group = isset( $bp->groups->current_group ) ? $bp->groups->current_group : false;
      
      	return apply_filters( 'groups_get_current_group', $current_group );
      }
      
      /*** Group Avatars *************************************************************/
      
      function groups_avatar_upload_dir( $group_id = 0 ) {
      	global $bp;
      
      	if ( !$group_id )
      		$group_id = $bp->groups->current_group->id;
      

Comments are closed.