Created
May 25, 2022 13:39
-
-
Save runezero/28a72a32cf9c359ce384e4d2a9b0beb9 to your computer and use it in GitHub Desktop.
[Enable product revisions] Enable WooCommerce product revisions on products, only enable on shops with small amount of products #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