-
-
Save tdwebservices-official/02892da75e43b1a799e00c4db74f36fa to your computer and use it in GitHub Desktop.
How to Enable Revisions for WooCommerce Products
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
/* | |
* Add Revision support to WooCommerce Products | |
* | |
*/ | |
add_filter( 'woocommerce_register_post_type_product', 'cinch_add_revision_support' ); | |
function cinch_add_revision_support( $args ) { | |
$args['supports'][] = 'revisions'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment