Yoast SEO Abilities docs: note non-production availability on the post and term pages

未关闭
#439 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@leonidasmi 已经在做这个了。

开始于 2026年11月20日。

评估

这个 Issue 还没有评估数据。

描述

Follow-up to #431.

Availability on non-production sites

The post abilities (yoast-seo/get-post-seo-data, yoast-seo/update-post-seo-data) and the term abilities (yoast-seo/get-term-seo-data, yoast-seo/update-term-seo-data) are only registered when Yoast SEO builds its indexables. That is off by default on non-production environments, so the abilities are missing from the listing there. In the plugin, this is Abstract_SEO_Data_Ability::is_available().

analysis-scores.md already says this for the score abilities:

None of the three are available on non-production environments, where Yoast SEO's indexables, which the scores are read from, aren't built by default.

posts-seo-data.md and terms-seo-data.md don't mention it. Add a similar note to both.

Smaller points to look at

  • "Full definition" examples are shortened. author-schema.md, terms-seo-data.md, and posts-seo-data.md say the request "returns the complete definition", but the JSON leaves out some field descriptions. In author-schema.md, the twitter description is also cut off before its last sentence. Either say the examples are shortened, or paste the real output.
  • Undocumented error in author-schema.md. A user_id that doesn't match a user returns a 404 yoast_seo_user_not_found error.
主要语言
JavaScript
星标
14
派生
22
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Yoast/developer 的其他 Issue

查看 Yoast/developer 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。