Introducing additional functions to check if a post is publicly viewable in WordPress 5.7

WordPress 5.7 introduces two additional functions to check if a post is publicly viewable. Previously, the is_post_type_viewable() function was already available to determine if a post type is visible to anonymous users via the publicly_queryable setting when registering the post type. However, it wasn’t sufficient to determine if a specific post is viewable as this function only checks for … Continue reading Introducing additional functions to check if a post is publicly viewable in WordPress 5.7