WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.