Skip to content

Instantly share code, notes, and snippets.

@tdwebservices-official
Created March 8, 2024 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdwebservices-official/02892da75e43b1a799e00c4db74f36fa to your computer and use it in GitHub Desktop.
Save tdwebservices-official/02892da75e43b1a799e00c4db74f36fa to your computer and use it in GitHub Desktop.
How to Enable Revisions for WooCommerce Products
/*
* 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