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

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.

Related Functions

is_post_status_viewable, is_post_publicly_viewable, is_post_type_hierarchical, is_post_type_archive, is_taxonomy_viewable

Top Google Results

User discussions

wpseek mobile