Created
August 27, 2012 21:06
-
-
Save codearachnid/3492225 to your computer and use it in GitHub Desktop.
Disable author, excerpt and custom fields meta boxes in the event editor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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