akcjareferencjaod 2.1.0
send_headers
Opis — z kodu źródłowego
Fires once the requested HTTP headers for caching, content type, etc. have been sent.
The {@see 'wp_finalized_template_enhancement_output_buffer'} action may be used to send headers after rendering the template into an output buffer.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$wp | \WP | Current WordPress environment instance (passed by reference). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'send_headers', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'send_headers', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii