Jetpack Social can be customized to better suit your workflow. This guide walks through several common customizations, including enabling auto-sharing for custom post types, disabling auto-sharing for WooCommerce products, and hiding Jetpack Social UI options from the editor.
Auto-sharing Custom Post Types with Jetpack Social
By default, Jetpack Social’s auto-sharing feature is only triggered when you publish a new blog post. If you want to enable auto-sharing for custom post types, follow one of the methods below.
Option 1: Adding support to an existing post type
To add Jetpack Social support to an existing post type, use the add_post_type_support() function. Follow these steps:
- Open your functionality plugin:
If you don’t have one, create a new plugin or add code to an existing one. - Add the following code:
add_action('init', 'my_custom_init');
function my_custom_init() {
add_post_type_support('custom_post_type', 'publicize');
}
- Replace the placeholder:
Replacecustom_post_typewith your Custom Post Type slug.
Option 2: Adding support when registering the post type
To add Jetpack Social support while registering a new post type, follow these steps:
- Open your functionality plugin or theme’s
functions.phpfile - Add the following code:
function jetpackme_custom_post_type() {
$args = array(
'label' => __('Custom Post Type', 'text_domain'),
'supports' => array('title', 'editor', 'publicize'),
'public' => true
);
register_post_type('custom_post_type', $args);
}
add_action('init', 'jetpackme_custom_post_type', 0);
- Replace the placeholder:
Replacecustom_post_typewith your Custom Post Type slug.
Removing WooCommerce Products from Jetpack Social
By default, WooCommerce includes Jetpack Social support and your new products will be auto-shared to your social media accounts. You can disable this functionality by adding the following code snippet:
add_action('init', 'woo_publicize_remove');
function woo_publicize_remove() {
remove_post_type_support('product', 'publicize');
}
Please be aware that code snippets are provided as a courtesy and our support team is unable to offer assistance customizing them further.
Still need help?
Please contact support. We’re happy to advise.
Jetpack Social: Related Support Articles
- Post to Tumblr with Jetpack Social
- Post to LinkedIn with Jetpack Social
- Post to Mastodon with Jetpack Social
- Post to your Instagram business account with Jetpack Social
- Post to Nextdoor with Jetpack Social
- Post to Threads with Jetpack Social
- Post to Bluesky with Jetpack Social
- Troubleshoot Jetpack Social