{$type}_send_to_editor_url

過濾鉤子
apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text )

{$type}_send_to_editor_url 是 WordPress 中的過濾器鉤子,用於修改要傳送給編輯器的 URL。 “$type”的值是插入到編輯器中的媒體檔案的型別,例如影象、音訊或視訊。

這個過濾器在wp-admin/includes/media.php中有記錄。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );
$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );
$html = apply_filters( "{$type}_send_to_editor_url", $html, $src, $link_text );

常見問題

FAQs
檢視更多 >