I've registered a custom post status 'Editing'. Whenever a post is changed to use that status, the Publish time is set to the time the status was changed rather than 'Immediately'.
This is frustrating because my editors often don't notice this and publish posts 2 days in the past.
Here's the code:
// Register Custom Post Status
function custom_post_status() {
$args = array(
'label' => _x( 'Editing', 'Status General Name', 'futurism' ),
'label_count' => _n_noop( 'Editing (%s)', 'Editing (%s)', 'futurism' ),
'public' => false,
'internal' => true,
'private' => true,
'protected' => false,
'show_in_admin_all_list' => true,
'show_in_admin_status_list' => true,
'exclude_from_search' => true,
);
register_post_status( 'editing', $args );
}
add_action( 'init', 'custom_post_status' );
// Add the option to the select menu in wp-admin because Wordpress doesn't do this for you
function append_post_status_list(){
global $post;
$complete = '';
$label = '';
if($post->post_status == 'editing'){
$complete = ' selected=\"selected\"';
$label = '<span id=\"post-status-display\"> Editing</span>';
}
echo '
<script>
jQuery(document).ready(function($){
$("select#post_status").append("<option value=\"editing\" '.$complete.'>Editing</option>");
$(".misc-pub-section label").append("'.$label.'");
});
</script>
';
}
add_action('admin_footer-post.php', 'append_post_status_list');