Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

This question already has an answer here:

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

marked as duplicate by toscho Jan 8 '14 at 1:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

How are they not relevant? – shea 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

1 Answer 1

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

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