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:
- Publish: When we publish WordPress posts, it updates posts status to ‘publish’ and post is visible to everyone.
- Future: If you schedule WordPress posts, its status is set as ‘future’
- Draft: If your post is not ready for the public, you can save it as a ‘draft’ to publish later.
- 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.
- Private: These posts are visible to site admins and editors only.
- 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.
- Auto-Draft: WordPress saves revisions automatically while you are editing with status ‘auto-draft’
- 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:
Tutorials |
---|
No Content Found. |
Exercises & Assignments |
---|
No Content Found. |
Interview Questions & Answers |
---|
No Content Found. |