WP HOOKS
filtrod 5.3.0

wp_image_maybe_exif_rotate

Args 2Plik wp-includes/class-wp-image-editor.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the `$orientation` value to correct it before rotating or to prevent rotating the image.

Parametry

ParametrTypOpis
$orientationintEXIF Orientation value as retrieved from the image file.
$filestringPath 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
}

Popularne w tej kategorii