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.

Published by

28 thoughts on “Jetpack Publicize with WooCommerce Products”

    1. 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. 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. hello, i tried the code above but it doesn’t work. i use wootheme mystile and have jetpack & woocommerce plugin installed.

    1. 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.

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

  3. .. first time functions.php user, immediate success. only two times blank screen,ehh. you’ve made me to puzzle it out, many thanks and snippet is magic, can’t wait to try it ..

Leave a Reply