W3cubDocs

/WordPress

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()

Return

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

Source

File: wp-includes/media.php

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

Changelog

Version Description
3.5.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_image_editor_supports