WooCommerce Media API is an extension of WooCommerce API with new endpoint media(/wp-json/wc/v3/media). This is a wrapper of existing WordPress REST API. This plugin will help you bypass WordPress REST API authentication settings and JWT, and use WooCommerce API to upload medias and images directly.
Developed by WooPOS and customized by me.
- Wordpress 4.4+
- WooCommerce 3.5+
- Install and activate this plugin;
- Send a POST request to /wp-json/wc/v3/media with following required data:
Parameters | Description |
file (multipart) | The file to upload. Array is not supported. |
Additional media properties can be found here.