General Status Visibility Overview Use this tool to create custom code for Post Status with register_post_status() function. Usage Fill in the user-friendly form. Click the “Update Code” button. Copy the code to your project. Or save it as a snippet and share with the community. Examples If you are still learning how to use this tool, check out the following examples: Draft Pending Review Redirect Deleted Function Name The function used in the code. Child Themes Yes No Add Child Themes Support. Text Domain Translation file Text Domain. Optional. Post Status Status name used in the code. Up to 32 characters, lowercase. Name (Singular) Post Status singular name. e.g. Draft or Scheduled. Name (Plural) Post Status plural name. e.g. Drafts or Scheduled. Public Choose... Yes - Default No Posts of this status should be shown in the site front end. Exclude from search results Choose... Yes No - Default Posts of this status should be excluded from search results. Show in admin all list Choose... Yes - Default No Show statuses in the edit listing of the post. Show in admin status list Choose... Yes - Default No Show statuses list at the top of the edit listings.e.g. All (12) Custom Status (2) Update Code Save Snippet
// Register Custom Status function custom_post_status() { } add_action( 'init', 'custom_post_status', 0 );