WC REST API Hooks & Filters
-
Hi,
I’m using the following filters to add custom meta to REST API output for customers and orders:
- woocoommerce_rest_prepare_order
- woocoommerce_rest_prepare_shop_order
- woocoommerce_rest_prepare_customer
However, none of the functions are getting called on accessing:
/wp-json/wc/v1/customers?consumer_key=ck_...&consumer_secret=cs_...
/wp-json/wc/v1/customers/nnnn?consumer_key=ck_...&consumer_secret=cs_...
/wp-json/wc/v1/orders?consumer_key=ck_...&consumer_secret=cs_...
/wp-json/wc/v1/orders/nnnn?consumer_key=ck_...&consumer_secret=cs_...
Have these hooks been removed, or replaced with other hooks?
- The topic ‘WC REST API Hooks & Filters’ is closed to new replies.