filtrod 4.4.0
rest_send_nocache_headers
Opis — z kodu źródłowego
Filters whether to send no-cache headers on a REST API request.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$rest_send_nocache_headers | bool | Whether to send no-cache headers. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'rest_send_nocache_headers', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'rest_send_nocache_headers', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii