wp_image_editor_supports()WP 3.5.0

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

No Hooks.

Return

true|false. True if an eligible editor is found; false otherwise.

Usage

wp_image_editor_supports( $args );
$args(string|array)
Array of arguments to retrieve the image editor supports.
Default: empty array

Changelog

Since 3.5.0 Introduced.

wp_image_editor_supports() code WP 6.7.2

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