W3cubDocs

/WordPress

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

$p_bytes = wp_convert_hr_to_bytes( ini_get( 'post_max_size' ) );

/**

Changelog

Version Description
3.5.0 Introduced.

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