Admin variations - Set _stock_status when link all variations

This commit is contained in:
Claudio Sanches 2015-07-09 18:28:02 -03:00
parent c5ae7b18c7
commit 3394277a86
1 changed files with 3 additions and 0 deletions

View File

@ -955,6 +955,9 @@ class WC_AJAX {
update_post_meta( $variation_id, $key, $value );
}
// Save stock status
update_post_meta( $variation_id, '_stock_status', 'instock' );
$added++;
do_action( 'product_variation_linked', $variation_id );