Enable Jetpack Publicize for The Events Calendar events
<?php
/**
* Enable Jetpack Publicize for The Events Calendar events
*
* from https://gist.github.com/cliffordp/3c905c991294e94a9b77b929af053423
*
* adapted from https://jetpack.com/support/publicize/#custom-post-types for The Events Calendar
*/
add_action( 'init', 'tribe_events_work_with_jetpack_publicize' );
function tribe_events_work_with_jetpack_publicize() {
if ( ! class_exists( 'Tribe__Events__Main' ) ) {
return false;
}
add_post_type_support( Tribe__Events__Main::POSTTYPE, 'publicize' );
}