Group::random_group_status( string $status )

Gets a randon group status.


Parameters Parameters

$status

(string) (Required) Group status.


Top ↑

Return Return

(string)


Source Source

File: cli/src/group.php

	protected function random_group_status( $status ) {
		$core_status = array( 'public', 'private', 'hidden' );

		if ( 'mixed' === $status ) {
			$status = $core_status[ array_rand( $core_status ) ];
		}

		return $status;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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