WordPress at Your Fingertips
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.


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

	return $orientation;
EXIF Orientation value as retrieved from the image file.
Path to the image file.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.