media_send_to_editor

過濾鉤子
apply_filters( 'media_send_to_editor', $html, $id, $attachment )

media_send_to_editor 是一個過濾器,它允許你修改當你從媒體庫中新增媒體時插入到編輯器中的HTML。

此篩選器記錄在wp-admin/include/media.php中。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$html = apply_filters( 'media_send_to_editor', $html, $id, $attachment );
$html = apply_filters( 'media_send_to_editor', $html, $id, $attachment );
$html = apply_filters( 'media_send_to_editor', $html, $id, $attachment );

常見問題

FAQs
檢視更多 >