is_post_type_viewable
is_post_type_viewable
Appears in: wordpress-5.9, wordpress-5.9.1, wordpress-5.9.2, wordpress-5.9.3, wordpress-6.0, wordpress-6.0.1, wordpress-6.0.2, wordpress-6.0.3, wordpress-6.1, wordpress-6.1.1, wordpress-6.2, wordpress-6.2.1, wordpress-6.2.2, wordpress-6.3, wordpress-6.3.1, wordpress-6.3.2, wordpress-6.4, wordpress-6.4.1, wordpress-6.4.2, wordpress-6.4.3, wordpress-6.5, wordpress-6.5.2, wordpress-6.5.3, wordpress-6.5.4, wordpress-6.5.5, wordpress-6.6, wordpress-6.6.1, wordpress-6.6.2, wordpress-6.7, wordpress-6.7.1, wordpress-6.7.2
Hook Type: filter
Displaying hooks found in version: wordpress-6.7.2apply_filters('is_post_type_viewable') is found 1 times:
- /wp-includes/post.php line 239923952396239723982399240024012402240324042405
*
* @param bool
$is_viewable
Whether the post type is
"viewable"
(strict type).
* @param WP_Post_Type
$post_type
Post type object.
*/
return
true === apply_filters(
'is_post_type_viewable'
,
$is_viewable
,
$post_type
);
}
/**
* Determines whether a post status is considered
"viewable"
.
*
* For built-in post statuses such
as
publish
and
private
, the
'public'
value will be evaluated.