skip_nonce_caching filter
-
Hi there,
First thank you so much for this great plugin !
I’ve been trying to use the wp_rest_cache/skip_nonce_caching filter to allow caching when x-wp-nonce request header is set on one of my custom endpoint.
But it seems this filter is never triggered, I tried from my theme or from a plugin, and even through the init hook like so :
add_action( 'init', fn() => add_filter( 'wp_rest_cache/skip_nonce_caching', false ), 1 );
It’s seems it’s always too late to be triggered. Am I doing something wrong ? (Note that I tested without the request header and the cache response is served)
thanks for your help
Michael
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘skip_nonce_caching filter’ is closed to new replies.