您可以使用名为wp_media_insert_url_form
:
add_filter(\'wp_media_insert_url_form\', \'ex46632_media_insert_url_form\');
function ex46632_media_insert_url_form($html) {
$html = str_replace(\'<input id="src" name="src" value=""\', \'<input id="src" name="src" value="http://mysite.com/images/"\', $html);
return $html;
}
这样的内容可以添加到您的主题中
functions.php
文件
This is untested code that is just as an example of direction.