image_editor_default_mime_type WordPress Filter Hook

The image_editor_default_mime_type Wordpress hook allows you to specify the default image editor for a particular image type. This can be useful if you want to use a different image editor for a specific image type, or if you want to use a different image editor for all images.

apply_filters( 'image_editor_default_mime_type', string $mime_type ) #

Filters default mime type prior to getting the file extension.


Description

Top ↑

See also


Top ↑

Parameters

$mime_type

(string)Mime type string.


Top ↑

Source

File: wp-includes/class-wp-image-editor.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.