Core Function
View Source on Trac ↗ is_post_type_viewable()
is_post_type_viewable( mixed $post_type ) Determines whether a post type is considered "viewable".
Parameters 1 required
| Name / Type | Description |
|---|---|
| (string | | WP_Post_Type) $post_type Post type name or object. Required |
Return Value
(bool)
Whether the post type should be considered viewable.
Function Information
Since Version
4.4.0
Source File
wp-includes/post.php
Advertisement