wp_image_maybe_exif_rotate

wp_image_maybe_exif_rotate

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('wp_image_maybe_exif_rotate') is found 1 times:

  • /wp-includes/class-wp-image-editor.php line 519
    		 *
    		 * @param int    $orientation EXIF Orientation value as retrieved from the image file.
    		 * @param string $file        Path to the image file.
    		 */
    		$orientation = apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $this->file );
    
    		if ( ! $orientation || 1 === $orientation ) {
    			return false;
    		}
    
    		switch ( $orientation ) {