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:

Description

Determine whether a post status is considered "viewable".For built-in post statuses such as publish and private, the 'public' value will be evaluted. For all others, the 'publicly_queryable' value will be used.

Related Functions

is_post_type_viewable, is_post_publicly_viewable, get_post_status_object, is_taxonomy_viewable, get_post_statuses

Top Google Results

User discussions

wpseek mobile