ANSWER MOD: just an important mod to the chosen answer:
// check if you actually have drafts; also avoids extra '|' separator
if (isset($views['draft'])) {
// 'Drafts' should be added (and come first) if you don't want to end up with 'Unavailables'
$views['draft'] = str_replace(array('Drafts','Draft'), 'Unavailable', $views['draft']);
}
and the mentioned caveat is not showing up for me on 3.4. :D
Only for one particular custom post type employee
, I want to change the name/string "Draft" (which stands for the 'draft'
status) to "Unavailable" for any employee
post that has a 'draft'
status, anywhere the name shows up on the admin screens and basically throughout the entire site, i.e.
Is there a hook for this? Or is there a better way to do this?