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:
  • 5: .

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.

Related Functions

is_post_type_viewable, is_post_publicly_viewable, get_post_status_object, register_post_status, get_post_statuses

Top Google Results

User discussions

wpseek mobile