Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

is_post_type_viewable()

3 tags 1 category

is_post_type_viewable() — 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.

Inputs: $post_type (string|WP_Post_Type): Post type name or object.

Returns bool: Whether the post type should be considered viewable.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…