A WordPress-centric search engine for devs and theme authors



rest_send_nocache_headers ›

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

Send nocache headers on authenticated requests.





Source

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