Last active
September 2, 2020 21:19
-
-
Save spigotdesign/157cb4eafa55a4c0b8e52f17f85d8819 to your computer and use it in GitHub Desktop.
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( $supports ) { | |
$supports['supports'][] = 'revisions'; | |
return $supports; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment