Reputation: 820
How do i generate consumer_key
and consumer_secret
for wp_woocommerce_api_keys
from a function call.
So that i can automatically give users read access to woocommerce.
Upvotes: 1
Views: 1286
Reputation: 11
I thought the same thing, but there isnt in core. I think we have to deal with the update_api_key
Function located in class-wc-ajax.php.
it will be saved in the wp_woocommerce_api_keys
table.
Upvotes: 1