Tribe__Validator__Base::is_post_status( string $post_status )
Whether a string represents a valid and registered post status or not.
Contents
Parameters
- $post_status
-
(string) (Required)
Return
(bool)
Source
File: src/Tribe/Validator/Base.php
public function is_post_status( $post_status ) {
$post_stati = get_post_stati();
if ( empty( $post_stati ) ) {
return false;
}
return in_array( $post_status, $post_stati );
}