wp_image_editor_supports()WP 3.5.0

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

Хуков нет.

Возвращает

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

Использование

wp_image_editor_supports( $args );
$args(строка|массив)
Array of arguments to retrieve the image editor supports.
По умолчанию: empty array

Список изменений

С версии 3.5.0 Введена.

Код wp_image_editor_supports() WP 6.5.2

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