Lesson: Accessing v2 API of WooCommerce from different roles.

New Day: Sun Apr 30 2023 23:09:19 GMT-0500 (Central Daylight Time)

Only administrators can access the v2 api of WooCommerce, instead of wasting your time to try to get a custom role to do this just use a php call and pipe in the values via an enqueue_script and a localize_script.

Leave a Reply