-
-
Save I3rixon/e4e991c6773cbcc1e855281cb05d2372 to your computer and use it in GitHub Desktop.
Enable revisions on products in WooCommerce
This file contains hidden or 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_filter( 'woocommerce_register_post_type_product', 'wc_modify_product_post_type' ); | |
| function wc_modify_product_post_type( $args ) { | |
| $args['supports'][] = 'revisions'; | |
| return $args; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment