Skip to content

Instantly share code, notes, and snippets.

@spigotdesign
Last active September 2, 2020 21:19
Show Gist options
  • Save spigotdesign/157cb4eafa55a4c0b8e52f17f85d8819 to your computer and use it in GitHub Desktop.
Save spigotdesign/157cb4eafa55a4c0b8e52f17f85d8819 to your computer and use it in GitHub Desktop.
/*
* 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