What is Post Status in WordPress?

WordPress Post status is used to set status of posts to treat them differently.

In default WordPress, There are mainly 8 post status:

  1. Publish: When we publish WordPress posts, it updates posts status to ‘publish’ and post is visible to everyone.
  2. Future: If you schedule WordPress posts, its status is set as ‘future’
  3. Draft: If your post is not ready for the public, you can save it as a ‘draft’ to publish later.
  4. Pending: In WordPress, a contributor (a type of user role) can create posts but cannot publish. These posts are set as a ‘pending’ status and it can be published by Admin or Editor role.
  5. Private: These posts are visible to site admins and editors only.
  6. Trash: If you move a post to ‘Trash’, they are set as a ‘trash’ status. After ‘Trash’, you can either restore or delete it permanently.
  7. Auto-Draft: WordPress saves revisions automatically while you are editing with status ‘auto-draft’
  8. Inherit: This is used for child posts (such as Attachments and Revisions) to check the actual status from the parent post.

Additionally, You can create Custom Status using the WordPress hook register_post_status()based on your theme or plugin feature.

Learn more about the similar topics:
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.