apply_filters( ‘wp_image_maybe_exif_rotate’, int $orientation, string $file )

In this article

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

Parameters

$orientationint
EXIF Orientation value as retrieved from the image file.
$filestring
Path to the image file.

Source

$orientation = apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $this->file );

Changelog

VersionDescription
5.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.