is_post_type_viewable
is_post_type_viewable ( $post_type )
Parameters:- (string|WP_Post_Type) post_type Post type name or object.
Returns:- (bool) Whether the post type should be considered viewable.
Defined at:Change Log: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Determines whether a post type is considered "viewable".For built-in post types such as posts and pages, the 'public' value will be evaluated.
For all others, the 'publicly_queryable' value will be used.