过滤默认标题短代码输出。
原型
apply_filters( 'img_caption_shortcode', string $output, array $attr, string $content )
描述
如果筛选的输出不为空,则将使用它而不是生成默认的标题模板。
参考:
- img_caption_shortcode()
参数
$output
(string)
标题输出。默认为空。
$attr
(array)
标题短代码的属性。
$content
(string)
图像元素,可能包含在超链接中。
源文件
路径:wp-includes/media.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/img_caption_shortcode/