Jetpack Publicize with WooCommerce Products

add_action('init', 'kraft_woo_publicize');
function kraft_woo_publicize() {
  add_post_type_support( 'product', 'publicize' );
}

This code snippet, for your theme’s functions.php or in a core functionality plugin adds Jetpack’s Publicize feature to WooCommerce products. This would allow you to auto-post to Facebook, Twitter, Google+, etc when you post a new WooCommerce product to your site.

Comments

    • says

      I’d need to check into how Woo works a bit more. Generally, Twitter will use the message in the Publish metabox. Facebook will use the manual excerpt first and default to the auto-generated excerpt if none present.

  1. says

    ahh sweet.. what a wicked little snippet..
    thanks so much..

    Re the excerpt.. if using “yoast seo for woo commerce..”
    There is a panel to specify/create custom content for sharing on social media. so targeting is much easier.. Its an amazing plug also .. :)

  2. themusicbuddy says

    hello, i tried the code above but it doesn’t work. i use wootheme mystile and have jetpack & woocommerce plugin installed.

    • says

      Sometimes, you can cycle the post status (e.g. Publish->Draft (save it as such)->Publish (re-save)) and it’ll go out.

      Generally, Publicize aims for new posts so hitting older ones is a bit out of scope.

        • Berk says

          Hi Fuad, could you tell what kind of solution you find, I am still looking and was not lucky to find something yet…

Leave a Reply