image_editor_default_mime_type

过滤钩子


apply_filters( 'image_editor_default_mime_type', $this->default_mime_type )
参数
  • (string)
    $mime_type
    Mime type string.
    Required:
定义位置
  • wp-includes/class-wp-image-editor.php
    , line 399
引入
3.5.0
弃用

Filters default mime type prior to getting the file extension.

$mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type );