image_send_to_editor_url
apply_filters( ‘image_send_to_editor_url’, string $html , string $src , string $alt , string $align )
过滤器::过滤发送到编辑器的图像URL。
Filter Hook: Filters the image URL sent to the editor.
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$html | (string) | 发送到图像编辑器的HTML标记。 |
$src | (string) | 图像源URL。 |
$alt | (string) | 图像替换或文本替换。 |
$align | (string) | 图像对齐。默认“alignnone”。可能的值包括“alignleft”、“aligncenter”、“alignright”、“alignnone”。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.8.0 | wp-admin/includes/media.php:926 | 1 | 0 |
image_send_to_editor_url 为WP2原创文章,链接:https://www.wp2.cn/hook/image_send_to_editor_url/