Mo99 Blog

Lesson: Accessing v2 API of WooCommerce from different roles.

May 1, 2023

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.