We have two different custom user roles that have custom capabilities. What I’m trying to do is to add two custom visibility statuses that are visible from the publish meta box on the edit page.
I’ve got the post statues registered but I saw on the codex wiki that there is no easy way to add it to the list but I figured I would turn here to see if anyone has done something similar?
I also don’t see a way to edit that form in that location, though there is a hook called
post_submitbox_misc_actions
near the bottom.I strongly suggest that use that
post_submitbox_misc_actions
hook or add your own brand new meta_box to the page. There are potentially severe consequences to altering the default meta_boxes, especially that one.However… if you must…
Remove that box:
And add back a box of your own construction (Generic Example):
The callback, of course, will be a near duplicate of the original submit box callback. The post type in those examples is ‘book’ that will need to be changed to match your post type.