过滤发送到编辑器的媒体项的HTML标记。
原型
apply_filters( 'media_send_to_editor', string $html, int $send_id, array $attachment )
参数
$html
(string)
发送到编辑器的媒体项的HTML标记。
$send_id
(int)
来自$ _POST [‘send’]数据的第一个键。
$attachment
(array)
附件元数据数组。
源文件
路径:wp-admin/includes/media.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/media_send_to_editor/