wp_image_editor_supports() - WordPress 函数参考中文文档

返回介绍

wp_image_editor_supports()

发布于 2017-09-11 字数 1330 浏览 1021 评论 0

wp_image_editor_supports( string|array $args = array() )

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


描述


参数

$args

(string|array)
(Optional)
Array of arguments to retrieve the image editor supports.

Default value: array()


返回值

(bool) True if an eligible editor is found; false otherwise.


源代码

File: wp-includes/media.php

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

更新日志

Version 描述
3.5.0 Introduced.

相关函数

Used By

  • wp-admin/includes/image-edit.php:
    wp_image_editor()
  • wp-admin/includes/media.php:
    edit_form_image_editor()
  • wp-admin/includes/media.php:
    get_media_item()

User Contributed Notes

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!