Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

get_post_status()

3 tags 1 category

get_post_status() — Retrieves 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.

Inputs: $post (int|WP_Post): Optional. Post ID or post object. Defaults to global $post.

Returns string|false: Post status on success, false on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…