wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_image_maybe_exif_rotate › WordPress过滤钩子

Since5.3.0
已弃用n/a
apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $this->file )
参数: (2)
  • (int) $orientation EXIF Orientation value as retrieved from the image file.
    Required: Yes
  • (string) $file Path to the image file.
    Required: Yes
定义在:
文档:

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





源码

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