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

已關閉
#439 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 6 天內回覆

@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
平均合併
6 天 8 小時
30 天內合併 PR
4

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Yoast/developer 的其他 Issue

查看 Yoast/developer 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。