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.
Parameters
- $mime_type
(string)(Required)
Return
(bool)
Source
File: wp-includes/class-wp-image-editor.php
public static function supports_mime_type( $mime_type ) { return false; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |