wp_image_editor_supports( string|array $args = array() ): bool

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

Parameters

$argsstring|arrayoptional
Array of arguments to retrieve the image editor supports.

Default:array()

Return

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

Source

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

Changelog

VersionDescription
3.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.