image_editor_default_mime_type
apply_filters( ‘image_editor_default_mime_type’, string $mime_type )
过滤器::在获取文件扩展名之前过滤默认的mime类型。
Filter Hook: Filters default mime type prior to getting the file extension.
说明(Description)
另见函数 wp_get_mime_types()
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$mime_type | (string) | Mime类型字符串。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
3.5.0 | wp-includes/class-wp-image-editor.php:331 | 1 | 0 |
image_editor_default_mime_type 为WP2原创文章,链接:https://www.wp2.cn/hook/image_editor_default_mime_type/