wp_image_editor_supports() WordPress Function

The wp_image_editor_supports() function is used to check if a specific image editor is available for a given image. This is useful for checking if an image editor supports a specific file type or mime type.

wp_image_editor_supports( string|array $args = array() ) #

Tests whether there is an editor that supports a given mime type or methods.


Parameters

$args

(string|array)(Optional) Array of arguments to retrieve the image editor supports.

Default value: array()


Top ↑

Return

(bool) True if an eligible editor is found; false otherwise.


Top ↑

Source

File: wp-includes/media.php

function wp_image_editor_supports( $args = array() ) {
	return (bool) _wp_image_editor_choose( $args );
}


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.

Show More
Show More