add action woocommerce_variable_product_sync to variable sync
This commit is contained in:
parent
1a0d17c29d
commit
f743018ea1
|
@ -530,6 +530,8 @@ class WC_Product_Variable extends WC_Product {
|
|||
update_post_meta( $this->id, '_min_variation_sale_price', $this->min_variation_sale_price );
|
||||
update_post_meta( $this->id, '_max_variation_sale_price', $this->max_variation_sale_price );
|
||||
|
||||
do_action( 'woocommerce_variable_product_sync', $this->id, $this );
|
||||
|
||||
$woocommerce->get_helper( 'transient' )->clear_product_transients( $this->id );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue