wp_image_editor_supports()
Tests whether there is an editor that supports a given mime type or methods.
Хуков нет.
Возвращает
bool. 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 image editor supports WP 7.1.3
function wp_image_editor_supports( $args = array() ) {
return (bool) _wp_image_editor_choose( $args );
}