filtrod 5.3.0
wp_image_resize_identical_dimensions
Opis — z kodu źródłowego
Filters whether to proceed with making an image sub-size with identical dimensions with the original/source image. Differences of 1px may be due to rounding and are ignored.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$proceed | bool | The filtered value. |
$orig_w | int | Original image width. |
$orig_h | int | Original image height. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_image_resize_identical_dimensions', '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( 'wp_image_resize_identical_dimensions', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii