is_post_status_viewable

is_post_status_viewable

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('is_post_status_viewable') is found 1 times:

  • /wp-includes/post.php line 2447
    	 *
    	 * @param bool     $is_viewable Whether the post status is "viewable" (strict type).
    	 * @param stdClass $post_status Post status object.
    	 */
    	return true === apply_filters( 'is_post_status_viewable', $is_viewable, $post_status );
    }
    
    /**
     * Determines whether a post is publicly viewable.
     *
     * Posts are considered publicly viewable if both the post status and post type