WP HOOKS
akcjareferencjaod 2.1.0

send_headers

Args 1Plik wp-includes/class-wp.phpDokumentacja WP ↗

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

ParametrTypOpis
$wp\WPCurrent 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
}

Popularne w tej kategorii