A WordPress-centric search engine for devs and theme authors



wp_image_maybe_exif_rotate ›

Since5.3.0
Deprecatedn/a
apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $this->file )
Parameters: (2)
  • (int) $orientation EXIF Orientation value as retrieved from the image file.
    Required: Yes
  • (string) $file Path to the image file.
    Required: Yes
Defined at:
Codex:

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





Source

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