filtrod 5.3.0
wp_image_maybe_exif_rotate
Opis — z kodu źródłowego
Filters the `$orientation` value to correct it before rotating or to prevent rotating the image.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$orientation | int | EXIF Orientation value as retrieved from the image file. |
$file | string | Path to the image file. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_image_maybe_exif_rotate', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_image_maybe_exif_rotate', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii