WordPress 5.7 introduces a function to check whether an article can be viewed publicly

WordPress 5.7 Two functions are introduced to check whether the article can be viewed publicly。 is_post_status_viewable() before, is_post_type_viewable() Function can be used to register article types by publicly_queryable Setting determines whether the article type is visible to anonymous users 。however,It’s not enough just to determine if you can view specific articles,Because this function only checks for general article type […]