GeneralStatusVisibilityOverviewUse this tool to create custom code for Post Status with register_post_status() function.UsageFill 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.ExamplesIf you are still learning how to use this tool, check out the following examples:DraftPending ReviewRedirectDeletedFunction Name The function used in the code.Child Themes YesNo 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 - DefaultNo Posts of this status should be shown in the site front end.Exclude from search results Choose...YesNo - Default Posts of this status should be excluded from search results.Show in admin all list Choose...Yes - DefaultNo Show statuses in the edit listing of the post.Show in admin status list Choose...Yes - DefaultNo 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 );