wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_send_nocache_headers › WordPress Filter Hooks

Since6.3.2
Deprecatedn/a
apply_filters( 'rest_send_nocache_headers', is_user_logged_in()
Parameters:
  • () rest_send_nocache_headers Whether to send no-cache headers.
    Required: Yes
Defined at:
Codex:

Filters whether to send no-cache headers on a REST API request.





Source

$send_no_cache_headers = apply_filters( 'rest_send_nocache_headers', is_user_logged_in() );