Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have a custom post type for events, and I wish to remove the Publish/Visibility options from the side as they are not relevant to the user.

Is there a way to do so?

share|improve this question
How are they not relevant? – bungeshea Dec 21 '12 at 2:06
it will always be public and has dates the event will occur on set date ranges so no need to change the publish date either. – Keith Dec 21 '12 at 2:10

2 Answers

I have actually used this solution. I had searched before and this solution did not come up. Managed to find it with a new google search.

How to HIDE everything in PUBLISH metabox except Move to Trash & PUBLISH button

share|improve this answer

WordPress provides the remove_meta_box() function exactly for this purpose:

function wpse_76815_remove_publish_box() {
    remove_meta_box( 'submitdiv', 'events', 'side' );
}
add_action( 'admin_menu', 'wpse_76815_remove_publish_box' );

The second parameter, events, will need to be replaced with the name of your custom post type.

share|improve this answer
I am not looking to remove the entire publish meta box. Only the visibility and the Publish immediately. I wish to keep the publish button and status options. – Keith Dec 21 '12 at 20:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.