首页 WordPress函数大全 image_add_caption()

image_add_caption()

2020-05-02 / 5486阅 / 悠然

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

image_add_caption( string $html, integer $id, string $caption, string $title, string $align, string $url, string $size, string $alt = '' )

Adds image shortcode with caption to editor

描述

参数

$html

(string)
(Required)
The image HTML markup to send.

$id

(integer)
(Required)
Image attachment ID.

$caption

(string)
(Required)
Image caption.

$title

(string)
(Required)
Image title attribute (not used).

$align

(string)
(Required)
Image CSS alignment property.

$url

(string)
(Required)
Image source URL (not used).

$size

(string)
(Required)
Image size (thumbnail, medium, large, full, or added with add_image_size()) (not used).

$alt

(string)
(Optional)
Image alt attribute (not used).

Default value: ''

返回

(string) The image HTML markup with caption shortcode.

大家谈论
    我的见解