Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Last active August 29, 2015 14:11
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 thecodepoetry/18b6296d463537ce5ca2 to your computer and use it in GitHub Desktop.
Save thecodepoetry/18b6296d463537ce5ca2 to your computer and use it in GitHub Desktop.
Add DT meta boxes to events page
function dt_add_event_metaboxes() {
global $DT_META_BOXES;
if ( $DT_META_BOXES ) {
foreach ( array( 'dt_page_box-sidebar', 'dt_page_box-footer', 'dt_page_box-header_options', 'dt_page_box-slideshow_options', 'dt_page_box-fancy_header_options' ) as $mb_id ) {
if ( isset($DT_META_BOXES[ $mb_id ], $DT_META_BOXES[ $mb_id ]['pages']) ) {
$DT_META_BOXES[ $mb_id ]['pages'][] = 'tribe_events';
}
}
}
}
add_action( 'admin_init', 'dt_add_event_metaboxes', 30 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment