filtrod 5.7.0
wp_image_src_get_dimensions
Opis — z kodu źródłowego
Filters the 'wp_image_src_get_dimensions' value.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$dimensions | array | false | Array with first element being the width and second element being the height, or false if dimensions could not be determined. |
$image_src | string | The image source file. |
$image_meta | array | The image meta data as returned by 'wp_get_attachment_metadata()'. |
$attachment_id | int | The image attachment ID. Default 0. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_image_src_get_dimensions', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_image_src_get_dimensions', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii