0

I am Using WooCommerce cli to create product but having issue to add custom filed (key:value in postmeta table)

wp wc product create --name="Test Title" --description="Description goes here" --type=simple --sku=254896 --regular_price=50 --user=1 --meta_data="[{\"key1\":\"value1\",\"key2\":\"value2\"}]"

Product is successfully saved but meta_data not saved against this product.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.