• Resolved khoolood

    (@khoolood)


    This woocommerece API /wp-json/wc/v3/orders returns all the orders data. However since I’m storing some images in the orders as base64 i’m getting the below response:

    ...
     "meta_data": [
                {
                    "id": 32737,
                    "key": "image_1",
                    "value": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABIUAAAJbCAYAAAB6...."
                }
            ],
    ...

    Having multiple images is causing the API endpoint to timeout, and I don’t need to have the images returned back in the orders API call. How can I return the orders without the meta_data key? Or for filter the meta_data to remove all data that has image_* as key.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Remove meta_data from Woocommerece order API’ is closed to new replies.