WC Admin rest calls cache ?
-
Hi
Tried to add support for WC admin calls, but it doesn’t seem to work. Simple example:
function test_add_wc_admin_endpoint( $allowed_endpoints ) {
$allowed_endpoints[‘wc-admin’] = [];
$allowed_endpoints[‘wc-admin’][] = ‘onboarding/tasks’;
return $allowed_endpoints;}
add_filter( ‘wp_rest_cache/allowed_endpoints’, ‘test_add_wc_admin_endpoint’, 10, 1);Any clue?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘WC Admin rest calls cache ?’ is closed to new replies.