is_post_status_viewable
is_post_status_viewable ( $post_status )
Parameters:- (string|stdClass) post_status Post status name or object.
Returns:- (bool) Whether the post status should be considered viewable.
Defined at:Change Log: - Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Description
Determines whether a post status is considered "viewable".For built-in post statuses such as publish and private, the 'public' value will be evaluated.
For all others, the 'publicly_queryable' value will be used.