bp_group_is_member

  • apply_filters( 'bp_group_is_member', !empty( $group->is_member ) )

    Source Reference:

    • Component: BuddyPress :: bp-groups
      File: /bp-groups/bp-groups-template.php :: Trac Source Line: 1366
      	global $bp, $groups_template;
      
      	// Site admins always have access
      	if ( $bp->loggedin_user->is_super_admin )
      		return true;
      
      	if ( !$group )
      		$group =& $groups_template->group;
      
      	return apply_filters( 'bp_group_is_member', !empty( $group->is_member ) );
      }
      
      /**
       * Checks if a user is banned from a group.
       *
       * If this function is invoked inside the groups template loop (e.g. the group directory), then
       * check $groups_template->group->is_banned instead of making another SQL query.
       * However, if used in a single group's pages, we must use groups_is_user_banned().
       *
       * @global object $bp BuddyPress global settings
      

Comments are closed.