您想做的事情已经被放入WordPress中,但只是不经常使用。
在经典或块编辑器中,单击以添加图像。

一旦你有了块,而不是上传或拉从现有的图像在您的媒体库,点击
Insert from URL.

现在只需从提供图像的任何位置粘贴URL即可。只需再次检查并确保您可以从谷歌热链接图像。
UPDATED WITH GALLERY METHOD:
将外部托管的图像添加到库中需要一些解决方法。。。您希望在媒体库中有一些“占位符图像”。首先将这些占位符添加到库中,然后用HTML编辑块,并用外部托管图像的URL替换占位符的URL。

因此,我使用标准的WP方法将图像添加到库中。

接下来,我单击三个垂直点,以;显示更多“;阻止设置并选择
Edit as HTML.
一
旦看到HTML,我会做一些事情,然后清除所有多余的东西,比如指定占位符附件ID的类以及我觉得不需要的任何其他东西。但最重要的是我改变了src
通过粘贴外部托管图像的URL,为图像设置属性。这两张照片我都是这么做的。
然后,我使用;显示更多设置;。

在可视化编辑器中,您可以看到这两个图像现在都可见。然后我更新/发布/另存为草稿,当我查看网站前端时。。。瞧!
