Is it possible to edit existing registered post statuses?
I am using the Edit Flow plugin to create custom statuses, however, the plugin does not offer the option to set whether the statuses are ‘public’ or not. I went in to the code and was able to insert that in, but obviously that will get overwritten with any updates. Essentially, I am looking for a complimentary function to add_post_type_support() for post statuses.
So something like
add_action('init', 'my_custom_init');
function my_custom_init() {
add_post_status_support( 'custom_status', array('public'=>true) );
}
You can alter a post status after init by changing the global variable
$wp_post_statusses
:register_post_status() (line 922) does the same thing: