rest_send_nocache_headers WordPress Filter Hook
The rest_send_nocache_headers hook is called when the WordPress REST API is accessed without the ?_cache={value} parameter. This hook is useful for plugins and themes that need to perform actions when the REST API is accessed without cached data.
apply_filters( 'rest_send_nocache_headers', bool $rest_send_nocache_headers ) #
Filters whether to send nocache headers on a REST API request.
Parameters
- $rest_send_nocache_headers
(bool)Whether to send no-cache headers.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |