[ad_1]
I enabled revision for woocommerce using this snippet:
add_filter( 'woocommerce_register_post_type_product', 'wc_modify_product_post_type' ); function wc_modify_product_post_type( $args ) { $args['supports'][] = 'revisions'; return $args; }
But it only tracks product description. I wanted to have product data also which contains variations,attributes and shipping settings.