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.


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

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

Список изменений

С версии 5.3.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

Использование не найдено.