GC_Image_Editor::get_extension()
最后更新于:2021-11-27 23:34:54
GC_Image_Editor::get_extension( string$mime_type=null)响应s first matched extension from Mime-type, as mapped from gc_get_mime_types()
参数
- $mime_type
-
(string) (Optional)
Default value: null
响应
(string|false)
源文件
文件: gc-includes/class-gc-image-editor.php
protected static function get_extension( $mime_type = null ) {
if ( empty( $mime_type ) ) {
return false;
}
return gc_get_default_extension_for_mime_type( $mime_type );
}