Last active
September 5, 2024 01:46
-
-
Save kraftbj/8791230 to your computer and use it in GitHub Desktop.
Add publicize support to the WooCommerce Product CPT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('init', 'kraft_woo_publicize'); | |
function kraft_woo_publicize() { | |
add_post_type_support( 'product', 'publicize' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of WooCommerece 2.3.0, this snippet isn't needed: https://kraft.im/2014/02/jetpack-publicize-woocommerce-products/