首页 WordPress函数大全 load_image_to_edit()

load_image_to_edit()

2020-05-02 / 3310阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

load_image_to_edit( string $attachment_id, string $mime_type, string $size = 'full' )

加载图像资源进行编辑。

描述

参数

$attachment_id

(string)
(Required)
Attachment ID.

$mime_type

(string)
(Required)
Image mime type.

$size

(string)
(Optional)
Image size, defaults to 'full'.

Default value: 'full'

返回

(resource|false) The resulting image resource on success, false on failure.

大家谈论
    我的见解