Can't add custom post status with register_post_status
-
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)
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.