最近更新的页面
Disabling Primary Category
自 Yoast SEO 3.1 版本起,我们新增了为文章设置主要分类的功能。 但在某些情况下,您可能不希望使用此功能。因此,我们添加了一个过滤器,允许您完全禁用它。 请将以下代码添加到您主题的 ...
Deprecations
我们有时会弃用过滤器和操作。本文档重点介绍 Yoast SEO 中的弃用项,并尝试为您指出替代方案。 Yoast SEO 14.0 中弃用的过滤器和操作 过滤器 wpseo_twitter_ta...
Customizing Attachment Parsing
Yoast SEO 有多种方式处理文章中添加的附件。我们添加了多个过滤器以确保在各种场景下的性能。 场景 Not so many attachments < 10.000 The normal ...
Changing Enhanced Slack Sharing
As of Yoast SEO 15.2 we've added the option to enhance the way URLs are displayed when they're sh...
Adding Custom Language Analysis
我们的软件支持多种语言。如果您希望添加自定义语言分析,分析文件需要在 window 对象上可用。有两种方法可以引入正确的语言分析 JS 文件: 自行创建自定义语言文件并将其分配给 window ...
Adding Custom Data Analysis
Yoast SEO 配备了一套强大的工具,不仅能帮助您提升 SEO,还能通过分析您正在处理的文章或页面内容来帮助您写出更好的文本。 在某些情况下,插件开发者可能希望向分析中添加一些额外数据,他们...
Adding Custom Assessments
除了在 Yoast SEO 已有的评估中添加自定义输入字段外,您还可以编写自己的评估来分析文章、页面或术语的各个方面。 注意: 本示例将使用 ES6 语法,如果您尚未使用 ES6 或未使用 Ba...
Hooks
Yoast Video SEO 插件提供了一些可用于修改其功能的钩子,具体如下: 输出 wpseo_video_{$type}_details 参数: $vid (数组), $post (WP...
Hooks
Yoast News SEO 插件提供了一些可用于修改其功能的钩子,具体如下: 头部标签 Yoast\WP\News\head 此操作允许在输出头部标签前运行额外的代码。 Yoast\WP\Ne...
Subscription Api
Yoast 合作伙伴可使用订阅 API 在 MyYoast 中创建订阅。订阅有助于通过 Yoast 插件的许可证检查。 :::tip 若您希望成为 Yoast 合作伙伴,请联系 partners...
Enhancing Search Results
Local SEO 插件的一项隐藏功能是使用您的位置内容增强网站的内部搜索结果。在极少数情况下,增强的搜索结果可能会与其他插件或主题功能产生冲突。因此,Local SEO 7.1 版本引入了开发...
Changing Organization Url In Schema
自 13.9 版本起,您或您的开发者可以使用 yoast-local-seo-schema-organization-url 过滤器来更改 Schema 中 Organization 部分的...
Changing Location Url Google Maps
Yoast SEO: Local and Yoast SEO: Local SEO for WooCommerce include the ability to add a Google map...
Changing Location Post Type
自 13.2 版本起,您或您的开发者可以使用 wpseo_local_post_type 过滤器来更改默认的地点文章类型。此过滤器接受一个参数: $post_type(必需)。 当您为地点定义...
Using Apis Classes
Yoast SEO ships with a variety of APIs and classes that you can utilize in your own code. However...
Surfaces Api
在 Yoast SEO 14.0 中,我们引入了一种将 Yoast SEO 集成到您代码中的正式方法。我们添加了一个称为表面的功能,名为 YoastSEO()。这个表面让您能轻松访问 Yoas...
Rest Api
:::caution 下文描述的 'raw' json 数据格式仅在 Yoast SEO 16.7 及以上版本中可用。 ::: Yoast SEO 包含一个 REST API,可返回站点上任意...
Overview
Yoast SEO exposes several APIs, which are designed to help advanced users, developers, and integr...
Metadata Api
对于简单的网站,或者当 SEO 不是首要考虑因素时,插件和主题通常直接将元标签输出或回显到文档的 <head> 部分。 然而,更高级的 SEO 通常要求元标签具备上下文,能够感知页面上的其他元...
Overview
Welcome to the Yoast Developer portal, the place to find any technical information related to our...