Update class-wc-post-data.php
Thanks for the feedback @vedanshujain. As per your suggestion, I have changed hooked to deleted_term_relationships. Please let me know if any.
This commit is contained in:
parent
dce3f4907f
commit
9f8d279b19
|
@ -30,7 +30,7 @@ class WC_Post_Data {
|
|||
add_action( 'shutdown', array( __CLASS__, 'do_deferred_product_sync' ), 10 );
|
||||
add_action( 'set_object_terms', array( __CLASS__, 'force_default_term' ), 10, 5 );
|
||||
add_action( 'set_object_terms', array( __CLASS__, 'delete_product_query_transients' ) );
|
||||
add_action( 'delete_term_relationships', array( __CLASS__, 'delete_product_query_transients' ) );
|
||||
add_action( 'deleted_term_relationships', array( __CLASS__, 'delete_product_query_transients' ) );
|
||||
add_action( 'woocommerce_product_set_stock_status', array( __CLASS__, 'delete_product_query_transients' ) );
|
||||
add_action( 'woocommerce_product_set_visibility', array( __CLASS__, 'delete_product_query_transients' ) );
|
||||
add_action( 'woocommerce_product_type_changed', array( __CLASS__, 'product_type_changed' ), 10, 3 );
|
||||
|
|
Loading…
Reference in New Issue