Codex tools: Log in / create account
Contents |
Retrieve the post status based on the Post ID.
If the post ID is of an attachment, then the parent post status will be given instead.
<?php get_post_status( $ID ) ?>
Since: 2.0.0
get_post_status() is located in wp-includes/post.php.