image_editor_default_mime_type filter-hookWP 3.5.0

Filters default mime type prior to getting the file extension.

Usage

add_filter( 'image_editor_default_mime_type', 'wp_kama_image_editor_default_mime_type_filter' );

/**
 * Function for `image_editor_default_mime_type` filter-hook.
 * 
 * @param string $mime_type Mime type string.
 *
 * @return string
 */
function wp_kama_image_editor_default_mime_type_filter( $mime_type ){

	// filter...
	return $mime_type;
}
$mime_type(string)
Mime type string.

Changelog

Since 3.5.0 Introduced.

Where the hook is called

WP_Image_Editor::get_output_format()
image_editor_default_mime_type
wp-includes/class-wp-image-editor.php 388
$mime_type = apply_filters( 'image_editor_default_mime_type', $this->default_mime_type );

Where the hook is used in WordPress

Usage not found.