On this page
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|array Optional-
Array of arguments to retrieve the image editor supports.
Default:
array()
Return
bool True if an eligible editor is found; false otherwise.
Source
File: wp-includes/media.php. View all references
function wp_image_editor_supports( $args = array() ) {
return (bool) _wp_image_editor_choose( $args );
}
Related
Used By
| Used By | Description |
|---|---|
| wp_image_editor() wp-admin/includes/image-edit.php | Loads the WP image-editing interface. |
| edit_form_image_editor() wp-admin/includes/media.php | Displays the image and editor in the post editor |
| get_media_item() wp-admin/includes/media.php | Retrieves HTML form for modifying the image attachment. |
| media_upload_form() wp-admin/includes/media.php | Outputs the legacy media upload form. |
| wp_plupload_default_settings() wp-includes/media.php | Prints default Plupload arguments. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_image_editor_supports