WordPress at a glance
filter is not described

wp_image_maybe_exif_rotate filter-hook . WP 5.3.0

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

Usage

add_filter( 'wp_image_maybe_exif_rotate', 'filter_function_name_8743', 10, 2 );
function filter_function_name_8743( $orientation, $file ){
	// filter...

	return $orientation;
}
$orientation(int)
EXIF Orientation value as retrieved from the image file.
$file(string)
Path to the image file.

Changelog

Since 5.3.0 Introduced.

Where the hook is called

WP_Image_Editor::maybe_exif_rotate()
wp_image_maybe_exif_rotate
wp-includes/class-wp-image-editor.php 419
$orientation = apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $this->file );

Where in WP core the hook is used WordPress

Usage not found.