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_4058', 10, 2 );
function filter_function_name_4058( $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 414
$orientation = apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $this->file );

Where the hook is used (in WP core)

Usage not found!