WP_Image_Editor::supports_mime_type() WordPress Method

The WP_Image_Editor::supports_mime_type() function is used to check if a given image editor supports a given mime type. This is useful for checking if a particular image editor is able to edit a particular type of image.

WP_Image_Editor::supports_mime_type( string $mime_type ) #

Checks to see if editor supports the mime-type specified.


Description

Must be overridden in a subclass.


Top ↑

Parameters

$mime_type

(string)(Required)


Top ↑

Return

(bool)


Top ↑

Source

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

	public static function supports_mime_type( $mime_type ) {
		return false;
	}


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.