Support Home > Social > Customizing Jetpack Social

Customizing Jetpack Social

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:

  1. Open your functionality plugin:
    If you don’t have one, create a new plugin or add code to an existing one.
  2. Add the following code:
add_action('init', 'my_custom_init');
function my_custom_init() {
    add_post_type_support('custom_post_type', 'publicize');
}
  1. Replace the placeholder:
    Replace custom_post_type with 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:

  1. Open your functionality plugin or theme’s functions.php file
  2. 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);
  1. Replace the placeholder:
    Replace custom_post_type with 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.

  • Table Of Contents

  • Contact Us

    Need more help? Feel free to contact us.