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:
Aslam Shekh 2019-09-24 11:14:43 +05:30 committed by GitHub
parent dce3f4907f
commit 9f8d279b19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 );