is_post_type_viewable

is_post_type_viewable

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('is_post_type_viewable') is found 1 times:

  • /wp-includes/post.php line 2399
    2395
    2396
    2397
    2398
    2399
    2400
    2401
    2402
    2403
    2404
    2405
         *
         * @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.