is_post_type_viewable

is_post_type_viewable

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('is_post_type_viewable') is found 1 times:

  • /wp-includes/post.php line 2399
    	 *
    	 * @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.