I”m trying to add the jetpack publicize feature to publicize me events created using the Events Manager plugin.
In this article: https://github.com/Automattic/jetpack/issues/8#issuecomment-33793859
There are 2 ways to add Publicize support to a Custom Post Type:
1 – If the Custom Post Type is declared via a third-party plugin or in your theme, you can use the add_post_type_support function (ref) in a functionality plugin, like so:
add_action('init', 'my_custom_init');
function my_custom_init() {
add_post_type_support( 'your-custom-post-type-name', 'publicize' );
}
In my case, “event” is the custom post type, but I need to know where to put that line of code. What file?
I’ve tried putting into the functions.php file but it was not changed.
Thanks in advance.
Pattie