WP HOOKS
filtrod 4.4.0

get_header_image_tag

Args 3Plik wp-includes/theme.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the markup of header images.

Parametry

ParametrTypOpis
$htmlstringThe HTML image tag markup being filtered.
$headerobjectThe custom header object returned by 'get_custom_header()'.
$attrarrayArray of the attributes for the image tag.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_header_image_tag', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii