Admin variations - Set _stock_status when link all variations
This commit is contained in:
parent
c5ae7b18c7
commit
3394277a86
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue