apply_filters( ‘rest_send_nocache_headers’, bool $rest_send_nocache_headers )

In this article

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

Parameters

$rest_send_nocache_headersbool
Whether to send no-cache headers.

Source

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

Changelog

VersionDescription
6.3.2Moved the block to catch the filter added on rest_cookie_check_errors() from wp-includes/rest-api.php.
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.