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

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_type_hierarchical, is_post_type_archive, get_post_type_labels, post_preview, _show_post_preview

Top Google Results

User discussions

wpseek mobile