• hi I’ve got a problem with adding custom post status. I’ve put this code in functions.php:

    function add_custom_status()
    {
    	register_post_status( 'publish', array(    'label' => _x('Custom status label', 'post'),
                                                'public' => true,
                                               '_builtin' => true,
                                                'label_count' => _n_noop('Custom status label <span class="count">(%s)</span>', 'Custom status label <span class="count">(%s)</span>')
                                            ) );
    }
    
    add_action('init', add_custom_status);

    but custom status doesn’t show in post status dropdown. Am I doing something wrong?

Viewing 2 replies - 1 through 2 (of 2 total)
  • A month later but I was doing the same and found that new post status’ are not yet built into the admin it seems. There is at least one workaround plugin at http://editflow.org that seems interesting.

    Also, I noticed on your code that builtin is true. That probably should be false since it’s not builtin but it won’t help get things going like you (and I) were initially hoping when finding this function in the codex.

    Thread Starter szaqal21

    (@szaqal21)

    Thanks for reply, I’ve abandon this aproach.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can't add custom post status with register_post_status’ is closed to new replies.