Creating WooCommerce Custom API

泄露秘密 提交于 2019-12-24 18:43:46

问题


I'm looking into creating a WooCommerce endpoint due to the lack of many functionalities in the WooCommerce REST API provided out of the box.

Examples are : Payment, Product-Addons, etc

But I can't find anything to start with, no documentation on how to extend WooCommerce to create a new endpoint. All I could find was creating a Plugin, but I'm not sure if that's what I need.

I want to create php files when called return the desired data like products and orders.

I've tried adding actions and filters to the functions.php file, but I can't seem to find the right action/filter for what I want, and looking online I only find old answers that used the old versions of WooCommerce API (legacy v1-2-3 instead of the new v1-2-3).

来源:https://stackoverflow.com/questions/53626874/creating-woocommerce-custom-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!