构建Caption短代码输出。
原型
img_caption_shortcode( array $attr, string $content = null )
描述
允许插件替换否则将返回的内容。过滤器是’img_caption_shortcode’并传递空字符串,attr参数和内容参数值。
参数
$attr
(array)
(Required)
标题短代码的属性。 ‘id’(字符串)标题的div元素的ID。 ‘align’(字符串)对齐标题的类名。默认’alignnone’。接受’alignleft’,‘aligncenter’,alignright’,‘alignnone’。 ‘width’(int)标题的宽度,以像素为单位。 ‘caption’(字符串)标题文本。 ‘class’(字符串)添加到标题容器的附加类名。
源文件
路径:“
<?php
...
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/img_caption_shortcode/