Forums

How do you differentiate between published and unpublished in db? (3 posts)

  1. Perad
    Member
    Posted 3 years ago #

    Hi, yeah.. where is published/unpublished information stored in the database?

    Is there a wp function that returns whether a post is published or not that I can use in my plugin?

  2. nathanrice
    Member
    Posted 3 years ago #

    globalize the $post variable and use $post->post_status to determine the status of the post.

  3. Otto
    Tech Ninja
    Posted 3 years ago #

    $status = get_post_status(get_the_ID());

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.