groups_is_valid_status( string $status )

Check a group status (eg ‘private’) against the list of registered statuses.

Parameters Parameters


(string) (Required) Status to check.

Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
1.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.