groups_is_valid_status( string $status )
Check a group status (eg ‘private’) against the list of registered statuses.
Description Description
Parameters Parameters
- $status
-
(Required) Status to check.
Return Return
(bool) True if status is allowed, otherwise false.
Source Source
File: bp-groups/bp-groups-functions.php
function groups_is_valid_status( $status ) { $bp = buddypress(); return in_array( $status, (array) $bp->groups->valid_status ); }
Changelog Changelog
Version | Description |
---|---|
1.1.0 | Introduced. |