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



image_editor_output_format › WordPress过滤钩子

Since5.8.0
已弃用n/a
apply_filters( 'image_editor_output_format', array()
参数: (3)
  • (string[]) $output_format { An array of mime type mappings. Maps a source mime type to a new destination mime type. Default empty array. @type string ...$0 The new mime type. }
    Required: Yes
  • (string) $filename Path to the image.
    Required: Yes
  • (string) $mime_type The source image mime type.
    Required: Yes
定义在:
文档:

Filters the image editor output format mapping.

Enables filtering the mime type used to save images. By default, the mapping array is empty, so the mime type matches the source image.





源码

$output_format = apply_filters( 'image_editor_output_format', array(), $filename, $mime_type );