wp_image_editor_supports

The timeline below displays how wordpress function wp_image_editor_supports has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 4.2

/**
 * Tests whether there is an editor that supports a given mime type or methods.
 *
 * @since 3.5.0
 *
 * @param string|array $args Optional. Array of arguments to retrieve the image editor supports.
 *                           Default empty array.
 * @return bool True if an eligible editor is found; false otherwise.
 */
function wp_image_editor_supports($args = array())
{
    return (bool) _wp_image_editor_choose($args);
}

WordPress Version: 3.7

/**
 * Tests whether there is an editor that supports a given mime type or methods.
 *
 * @since 3.5.0
 * @access public
 *
 * @param string|array $args Array of requirements. Accepts { 'mime_type'=>string, 'methods'=>{string, string, ...} }
 * @return boolean true if an eligible editor is found; false otherwise
 */
function wp_image_editor_supports($args = array())
{
    return (bool) _wp_image_editor_choose($args);
}