filtrod 2.6.0
get_image_tag
Opis — z kodu źródłowego
Filters the HTML content for the image tag.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$html | string | HTML content for the image. |
$id | int | Attachment ID. |
$alt | string | Image description for the alt attribute. |
$title | string | Image description for the title attribute. |
$align | string | Part of the class name for aligning the image. |
$size | string | int[] | Requested image size. Can be any registered image size name, or an array of width and height values in pixels (in that order). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_image_tag', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_image_tag', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}Popularne w tej kategorii