WPDev.one
Core Function
View Source on Trac ↗

is_post_status_viewable()

is_post_status_viewable( mixed $post_status )

Determines whether a post status is considered "viewable".

Parameters 1 required

Name / Type Description
(string

| stdClass) $post_status Post status name or object.

Required

Return Value

(bool)
Whether the post status should be considered viewable.

Function Information

Since Version
5.7.0
Source File
wp-includes/post.php
Advertisement