Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Last active September 5, 2024 01:46
Show Gist options
  • Save kraftbj/8791230 to your computer and use it in GitHub Desktop.
Save kraftbj/8791230 to your computer and use it in GitHub Desktop.
Add publicize support to the WooCommerce Product CPT
<?php
add_action('init', 'kraft_woo_publicize');
function kraft_woo_publicize() {
add_post_type_support( 'product', 'publicize' );
}
@kraftbj
Copy link
Author

kraftbj commented May 21, 2015

As of WooCommerece 2.3.0, this snippet isn't needed: https://kraft.im/2014/02/jetpack-publicize-woocommerce-products/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment