Merge branch 'master' of github.com:woothemes/woocommerce

This commit is contained in:
Claudio Sanches 2016-06-30 15:24:53 -03:00
commit b63b4600e9
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ class WC_Helper_Product {
'post_status' => 'publish'
) );
// Set it as variable.
wp_set_object_terms( $product_id, 'variable', 'product_type' );
// Price related meta
update_post_meta( $product_id, '_price', '10' );
update_post_meta( $product_id, '_min_variation_price', '10' );