Extending the WooCommerce REST API with Custom Routes and Fields
Extend the WooCommerce REST API: extra fields and custom routes An ERP or a mobile app talks to WooCommerce through /wp-json/wc/v3/. Sooner or later it needs data that WooCommerce does not expose: an internal supplier code on products, a B2B account number on customers, or a resource of the plugin itself. There are two clean…
Details