image_editor_default_mime_type хук-фильтрWP 3.5.0

Filters default mime type prior to getting the file extension.

Использование

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(строка)
Mime type string.

Список изменений

С версии 3.5.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.