Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
* 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
You can’t perform that action at this time.