Skip to content

Instantly share code, notes, and snippets.

@codearachnid
Created August 27, 2012 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codearachnid/3492225 to your computer and use it in GitHub Desktop.
Save codearachnid/3492225 to your computer and use it in GitHub Desktop.
Disable author, excerpt and custom fields meta boxes in the event editor
<?php
// used for Tri.be The Events Calendar
// disable author, excerpt and custom fields meta boxes in the event editor
function tribe_disable_default_meta() {
remove_post_type_support( TribeEvents::POSTTYPE, 'author' );
remove_post_type_support( TribeEvents::POSTTYPE, 'custom-fields' );
remove_post_type_support( TribeEvents::POSTTYPE, 'excerpt' );
}
add_action('init', 'tribe_disable_default_meta');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment