• dirkiev

    (@dirkiev)


    am trying to add products using the Woocommerce Rest API that have meta values

    In the documentation Woocommerce REST Api Docs – Product under product properties there is a meta_data field which takes and array of meta data.

    So I submit my array and the expected output which should have meta_data in the JSON is missing and there is no meta with the values on the WordPress site for that product this does not matter if I update or add a new product

    I am trying to add products using the Woocommerce Rest API that have meta values

    In the documentation Woocommerce REST Api Docs – Product under product properties there is a meta_data field which takes and array of meta data.

    So I submit my array and the expected output which should have meta_data in the JSON is missing and there is no meta with the values on the WordPress site for that product.

    The documentation is very limited on meta_data and have not found any examples on how to add it correctly for a product.

    My meta_data looks like below

    'meta_data': [
    {'key': 'overview', 'value': 'none'}, 
    {'key': 'features', 'value': 'none'}, 
    {'key': 'our_product_id', 'value': 15}
    ]
  • The topic ‘Adding product meta_data with API’ is closed to new replies.