如何在WordPress网站上禁用嵌入

WordPress 4.4 introduced a post oEmbed feature which allows others to embed your WordPress posts into their own site by adding the post URL. In this article, we will show you how to disable post oEmbed on your WordPress site.

WordPress 4.4引入了post oEmbed功能,该功能允许其他人通过添加帖子URL将WordPress帖子嵌入到自己的网站中。 在本文中,我们将向您展示如何在WordPress网站上禁用oEmbed发布。

How to Disable Post oEmbed on Your WordPress Site
什么是WordPress中嵌入的帖子以及为什么要禁用它 (What is Post oEmbed in WordPress and Why You Should Disable it)

OEmbed provides an easy way to embed content from one site to another. Many popular websites like Flickr, YouTube, Twitter, and others use it.

OEmbed提供了一种将内容从一个站点嵌入到另一个站点的简便方法。 Flickr,YouTube,Twitter等许多流行的网站都使用它。

Websites that allow other websites to embed their content using oEmbed protocol are called oEmbed providers.

允许其他网站使用oEmbed协议嵌入其内容的网站称为oEmbed提供程序。

WordPress supports many oEmbed providers by default that’s why you can easily embed videos, Tweets, Instagram photos, and much more by just pasting the URL and not the embed code.

WordPress默认情况下支持许多oEmbed提供程序,这就是为什么您只需粘贴URL而不是嵌入代码即可轻松嵌入视频TweetsInstagram照片以及更多内容的原因。

Since WordPress 4.4, all WordPress sites using the latest version will become an oEmbed provider themselves. This means other bloggers can add your posts to their site by simply adding the post URL in their own posts.

从WordPress 4.4开始,所有使用最新版本的WordPress网站都将自己成为oEmbed提供商。 这意味着其他博客作者可以通过在自己的帖子中添加帖子URL来将您的帖子添加到他们的网站。

WordPress post embeds

There is no harm in leaving it enabled on your website. It only allows other websites to show a small summary of your content with post title and featured image.

在您的网站上启用它没有害处。 它仅允许其他网站显示带有帖子标题和特色图片的内容的小摘要。

如何在WordPress网站上发布嵌入的文章 (How to Diable Post oEmbed on Your WordPress Site)

First thing you need to do is install and activate the Disable Embeds plugin. It works out of the box, and there are no settings for you to configure.

您需要做的第一件事是安装并激活“ 禁用嵌入”插件。 它开箱即用,没有可供您配置的设置。

Simply activating the plugin will disable oEmbed for your posts on other WordPress sites.

只需激活该插件,即可在其他WordPress网站上为您的帖子禁用oEmbed。

That’s all. We hope this article helped you disable oEmbed for posts on your WordPress site. You may also want to see our list of 40 useful tools to manage and grow your WordPress blog.

就这样。 我们希望本文能帮助您禁用WordPress网站上的oEmbed帖子。 您可能还想查看我们的40种有用工具的列表, 这些工具可以管理和发展WordPress博客

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在TwitterFacebook上找到我们。

翻译自: https://www.wpbeginner.com/plugins/how-to-disable-post-oembed-on-your-wordpress-site/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值