img_caption_shortcode
apply_filters( ‘img_caption_shortcode’, string $output , array $attr , string $content )
过滤器::过滤默认的标题快捷方式输出。
Filter Hook: Filters the default caption shortcode output.
说明(Description)
如果筛选的输出不为空,则将使用该输出,而不是生成默认的标题模板。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$output | (string) | 标题输出。默认为空。 |
$attr | (array) | 标题快捷方式的属性。 |
$content | (string) | 图像元素,可能包装在超链接中。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.6.0 | wp-includes/media.php:1718 | 1 | 0 |
img_caption_shortcode 为WP2原创文章,链接:https://www.wp2.cn/hook/img_caption_shortcode-2/