media_send_to_editor
apply_filters( ‘media_send_to_editor’, string $html , int $send_id , array $attachment )
过滤器::过滤发送到编辑器的媒体项的HTML标记。
Filter Hook: Filters the HTML markup for a media item sent to the editor.
说明(Description)
另见函数 wp_get_attachment_metadata()
参数(Parameters)
参数 | 类型 | 说明 |
---|---|---|
$html | (string) | 发送到编辑器的媒体项的HTML标记。 |
$send_id | (int) | $u POST[‘send’]数据中的第一个键。 |
$attachment | (array) | 附件元数据数组。 |
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.5.0 | wp-admin/includes/media.php:831 | 2 | 0 |
media_send_to_editor 为WP2原创文章,链接:https://www.wp2.cn/hook/media_send_to_editor-2/