Core Function
View Source on Trac ↗ get_post_status()
get_post_status( mixed $post = null ) Retrieves the post status based on the post ID.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | WP_Post) $post Optional. Post ID or post object. Defaults to global $post. Required |
Return Value
((string)
| false) Post status on success, false on failure.
Function Information
Since Version
2.0.0
Source File
wp-includes/post.php
Advertisement