WordPress Tutorials

Add a Custom Post Status in WordPress Without a Plugin

Every WordPress post has a status that decides where it sits in your workflow. A draft is still being written, a pending post waits for an editor, and a published post is live for visitors. For a small team, those built in options feel too blunt, because a post that needs fact checking looks the same as a post that is ready to publish.

A custom post status solves that problem by giving your workflow its own labels. You can add In Review for posts waiting for an editor, Approved for posts cleared to publish, and Needs Changes for posts that must go back to the writer. This guide shows how to add one without a plugin, using a small amount of code in your child theme.

What Are WordPress Post Statuses?

A post status is a label WordPress attaches to every post, page, and attachment. It tells WordPress whether the content is visible, who can see it, and where it appears in the admin area. WordPress stores that status in the database when you save a post.

  • Draft: an unfinished post that only its author and administrators can see in the admin area.
  • Pending Review: a post submitted for review, usually by a contributor who cannot publish directly.
  • Published: a live post that any visitor can read on the front end of your site.
  • Scheduled: a post with a future publish date that WordPress will publish automatically at that time.
  • Private: a post that only logged in administrators and editors can read.
  • Trash: a deleted post that sits in the trash for thirty days before WordPress removes it.

There are also statuses you rarely see in the editor, such as Auto Draft, which WordPress creates when you open a new post screen, and Inherit, which attachments use to follow the status of their parent post. You do not need to manage those by hand. The six statuses above shape daily publishing.

Why Add a Custom Post Status?

Imagine a three person team. A writer finishes a draft and marks it Pending Review. An editor reads it, finds two facts that need checking, and sends it back. In default WordPress, the only label for that returned post is Draft, which is also the label for a post started ten minutes ago with only a headline.

  • In Review: the post is written and waiting for an editor to read it.
  • Needs Changes: the editor has reviewed the post and sent it back with notes.
  • Approved: the post is checked, cleared, and ready to schedule or publish.
  • Client Review: the post is waiting for a client to approve it before it goes live.

Pick only the statuses your team will actually use. Two or three well chosen labels beat seven labels that nobody can remember. Start small, use the status for a few weeks, and add another only when a real gap appears.

Before You Start: Use a Child Theme

Add your code to the functions.php file of a child theme, not your main theme, because the next theme update will overwrite the parent theme file and your custom status will vanish. If you have never made one, read our guide on how to create a WordPress child theme first. Before you edit any theme file, make a full backup: learn how to back up your WordPress database without a plugin. A reliable host makes this safer, so read our web hosting guide if your current host makes backups painful.

Step 1: Register Your Custom Status with register_post_status()

Registration tells WordPress that your new status exists. Call register_post_status() on the init hook, so WordPress knows about the status before it loads posts or admin screens. Registration alone does not change the editor, and you will fix that in the next step. The example below registers a status called In Review: the slug in-review is the name stored in the database, while the label In Review is the name people see.

<?php
// Register a custom post status called In Review.
function vtg_register_in_review_status() {
    register_post_status( 'in-review', array(
        'label' => _x( 'In Review', 'post status', 'vtg' ),
        'public' => false,
        'exclude_from_search' => true,
        'show_in_admin_all_list' => true,
        'show_in_admin_status_list' => true,
        'label_count' => _n_noop( 'In Review <span class="count">(%s)</span>', 'In Review <span class="count">(%s)</span>', 'vtg' ),
    ) );
}
add_action( 'init', 'vtg_register_in_review_status' );
?>

Each argument has a job. The label is the name shown in the admin area. Setting public to false keeps the status private, and exclude_from_search keeps its posts out of front end search results. The two show_in_admin arguments make the status appear in the posts list filters, and label_count supplies the count beside the status name, such as In Review (3). To add a second status, copy the block, change the slug and label, and give the function a new name.

Step 2: Add the Status to the Editor Dropdown

Here is the known catch: registering a status does not add it to the Status dropdown in the post editor, because the block editor builds that dropdown from a fixed list of core statuses. Without a fix, nobody can assign a post to it while editing, which makes the status almost useless. The fix is a short script that runs in the admin footer on the post edit screen. It finds the Status dropdown, adds your new option, and selects it when the post already has your custom status.

<?php
// Add the In Review status to the editor dropdown.
function vtg_add_status_to_editor() {
    global $post;
    if ( ! $post ) {
        return;
    }
    $status = get_post_status( $post );
    echo '<script>';
    echo 'var s = document.querySelector( "select#post_status" );';
    echo 'if ( s ) { var o = document.createElement( "option" ); o.value = "in-review"; o.text = "In Review"; s.appendChild( o ); if ( "' . esc_js( $status ) . '" === "in-review" ) { s.value = "in-review"; } }';
    echo '</script>';
}
add_action( 'admin_footer-post.php', 'vtg_add_status_to_editor' );
add_action( 'admin_footer-post-new.php', 'vtg_add_status_to_editor' );
?>

Save the file, open a post in the editor, and look at the Status control. You should now see In Review beside Draft, Pending Review, and Published. Select it and update the post, then check the Posts list: the post should sit under the In Review filter. If the option does not appear, check that you saved the file to the active child theme, and turn on debugging with our guide to enable WordPress debug mode. A single typo in functions.php can blank the admin area, so restore your backup copy if you see a white screen.

Step 3: Show the Status Label in the Posts List

Once your team can assign the status, you want it to be obvious in the posts list. By default, WordPress shows the status beside the post title only for some statuses, such as Draft and Pending Review. A custom status can slip through unnoticed. The display_post_states filter adds a clear label beside the title, so anyone scanning the list can see which posts are in review.

<?php
// Show the In Review label beside the post title.
function vtg_show_in_review_label( $states, $post ) {
    if ( 'in-review' === get_post_status( $post ) ) {
        $states = array_merge( $states, array( 'In Review' ) );
    }
    return $states;
}
add_filter( 'display_post_states', 'vtg_show_in_review_label', 10, 2 );
?>

Add that filter to the same functions.php file, save it, and reload the Posts screen. A post with the In Review status should now show In Review beside its title, where Draft and Scheduled normally appear. An editor can then use the In Review filter and pick up exactly the posts that need attention, without opening each post.

How to Use Your New Status in an Editorial Workflow

Code alone does not create a workflow. Your team needs a shared agreement about what each status means and who moves a post from one stage to the next. Write those rules down in a short document, and keep them to a few lines each.

  • Writer finishes a post, sets the status to In Review, and tells the editor it is ready.
  • Editor reads the post. If it is clean, the editor sets the status to Approved.
  • If the post needs work, the editor sets the status to Needs Changes and leaves a clear note.
  • Writer fixes the post, sets it back to In Review, and the editor does a final check.

This workflow pairs naturally with user roles: Authors can save drafts and submit posts, while Editors can publish and manage other people’s posts. If you have not set up roles yet, read our guide on how to add a custom user role in WordPress without a plugin. The same thinking applies to other content types: learn how WordPress custom post types work.

What About Front End Visibility and Common Problems?

A custom status with public set to false is not visible on the front end. Visitors cannot open a post in that status by guessing its URL, and it will not appear in your blog archive, category pages, or search results. That is the safe default for an editorial stage, so keep public set to false and let the publish step be the single moment a post becomes visible. The official documentation on post statuses at wordpress.org is a useful reference.

  • Status missing from the editor: registration alone does not add it. Add the admin footer script from Step 2.
  • Status missing from the posts list filter: check that show_in_admin_status_list is set to true.
  • White screen after saving functions.php: restore your backup copy, then re-add the code one block at a time.
  • Post reverts to Draft after saving: confirm the slug in the script matches the slug in register_post_status().

If the status still does not behave as expected, check the official function reference for register_post_status() on developer.wordpress.org. It lists every argument, including a few advanced ones this guide does not use. Compare it with your code, and test on staging before you change anything on your live site.

Frequently Asked Questions

Do I need a plugin to add a custom post status in WordPress?

No, you do not need a plugin. Register a status with register_post_status() in your child theme functions.php file, add it to the editor with a small admin footer script, and show its label with the display_post_states filter. The code approach keeps your site lighter and gives you full control.

Why does my custom status not appear in the editor dropdown?

Registration alone does not add a status to the editor dropdown. The block editor builds that dropdown from core statuses only, so you need the small admin footer script from Step 2. Reload the post edit screen and the status should appear beside Draft, Pending Review, and Published.

Can visitors see posts with a custom post status?

Not if you register the status with public set to false. Posts in that status stay private, do not appear in archives or search results, and cannot be opened by guessing the URL. They become visible only when an editor publishes or schedules the post.

Will my custom status survive a theme update?

Yes, if you put the code in a child theme. Theme updates replace the parent theme files, but your child theme files stay untouched, so your code survives. If you put the code in the parent theme instead, the next update will overwrite functions.php and your custom status will disappear.

Last updated: November 2026.

Hostinger - Get 20% OFF

Habib ur Rehman

Hello! I'm the founder of VU Tech Geek. As a BSCS graduate and experienced WordPress professional, I'm passionate about technology and education. My Virtual University journey has given me valuable insights and knowledge, which I love to share with fellow students.… More »

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker