Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM Marketplace – REST API › WCFM REST API meta_data[] array not passing in create product
- This topic has 2 replies, 2 voices, and was last updated 4 years, 7 months ago by gazArchitect.
Viewing 2 reply threads
- AuthorPosts
- April 22, 2020 at 10:56 am #121640gazArchitectParticipant
I am having issue with REST API accepting meta_data[] array values in product create. I am able to do through WC v3 REST API, but calling WCFM v1 REST API it fails to parse this param and process key value pairs. Please let me know if this is supported.
- April 22, 2020 at 11:53 am #121653Sayan NaskarMember
Hello,
There is a filterapply_filters( "wcfmapi_rest_pre_insert_product_object", $map_product_form_data_with_request, $request, $creating );
You can use this filter to insert any data you need with creating product api.
- April 23, 2020 at 1:29 pm #122113gazArchitectParticipant
Great! Thank you!
- AuthorPosts
Viewing 2 reply threads
- The topic ‘WCFM REST API meta_data[] array not passing in create product’ is closed to new replies.