image_add_caption_text
apply_filters( ‘image_add_caption_text’, string $caption , int $id )
过滤器::过滤标题文本。
Filter Hook: Filters the caption text.
说明(Description)
注意:如果标题文本为空,则在插入编辑器时,标题快捷方式不会附加到图像HTML中。
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$caption | (string) | 原始标题文本。 |
$id | (int) | 附件ID。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
4.1.0 | wp-admin/includes/media.php:202 | 1 | 0 |
image_add_caption_text 为WP2原创文章,链接:https://www.wp2.cn/hook/image_add_caption_text/