filtrod 4.4.0
image_get_intermediate_size
Opis — z kodu źródłowego
Filters the output of image_get_intermediate_size()
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$data | array | Array of file relative path, width, and height on success. May also include file absolute path and URL. |
$post_id | int | The ID of the image attachment. |
$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( 'image_get_intermediate_size', '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( 'image_get_intermediate_size', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii