filtrod 4.4.0
get_header_image_tag
Opis — z kodu źródłowego
Filters the markup of header images.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$html | string | The HTML image tag markup being filtered. |
$header | object | The custom header object returned by 'get_custom_header()'. |
$attr | array | Array 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
}
// 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