groups_is_valid_status( string $status )
Check a group status (eg ‘private’) against the whitelist of registered statuses.
Description
Parameters
- $status
-
(Required) Status to check.
Return
(bool) True if status is allowed, otherwise false.
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
| Version | Description |
|---|---|
| BuddyPress 1.1.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.