add action woocommerce_variable_product_sync to variable sync

This commit is contained in:
Kathy Darling 2013-07-26 11:59:34 -04:00
parent 1a0d17c29d
commit f743018ea1
1 changed files with 2 additions and 0 deletions

View File

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