Yoast SEO 28.2 — docs(yoast-seo-abilities): Document new get-post-seo-data and update-post-seo-data abilities#416
Open
claude[bot] wants to merge 1 commit into
Conversation
…post-seo-data abilities Adds post-seo-data.md documenting the two new abilities introduced in wordpress-seo 28.2-RC2. Updates overview.md (three → five abilities, richer use-case section) and sidebars.js (new navigation entry).
Deploying yoast-developer with
|
| Latest commit: |
9756568
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://eb0f29b5.yoast-developer.pages.dev |
| Branch Preview URL: | https://rc-sync-wordpress-seo-28-2-r.yoast-developer.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RC docs sync — 28.2-RC2
Product: wordpress-seo
Area: yoast-seo-abilities
Source evidence:
src/abilities/user-interface/abilities-integration.php: registersyoast-seo/get-post-seo-data(read ability, GET, readonly=true, mcp.public=true) andyoast-seo/update-post-seo-data(write ability, POST, idempotent=true, mcp.public=true)src/abilities/application/post-seo-data-collector.php: newPost_SEO_Data_Collector::get_post_seo_data()— resolves posts by ID, permalink, or title keywords and returns the SEO data arraysrc/abilities/application/post-seo-data-updater.php: newPost_SEO_Data_Updater::update_post_seo_data()— patch-semantics update cascaded to post meta viaIndexable_To_Postmeta_Helpersrc/abilities/infrastructure/post-identifier-resolver.php: resolves identifier (post_id / permalink / title keywords) into indexable(s)src/abilities/infrastructure/post-seo-field-map.php: defines the read/write field contract (rendered fields, string fields, boolean fields, noindex tri-state)Changes in this PR
docs/features/yoast-seo-abilities/overview.md— updated ability count (3 → 5), added new ability names to the listing, expanded AI-agent use cases to include reading and writing post SEO datadocs/features/yoast-seo-abilities/post-seo-data.md— new page: documentsget-post-seo-data(input identifiers, output field table including*_renderedfields, example GET requests and response) andupdate-post-seo-data(patch semantics,noindextri-state, example POST requests); includes full JSON schemas in tabs and a "how to disable" snippetsidebars.js— addsfeatures/yoast-seo-abilities/post-seo-datato the Yoast SEO Abilities navigation categoryVerification
yarn buildpasses locally in this workflow.yarn lintclean for files touched by this PR.Reviewer notes
src/abilities/has no area entry. The path/permission heuristics (Step 1.6) technically fired —/user-interface/in the path,wpseo_manage_optionscapability — but the existing three abilities from the same file and with the same capability gate ARE already documented in this section. This PR follows that prior art. A maintainer should add anabilitiesarea toAGENT_MAP.mdto prevent future runs from relying on this ad-hoc reasoning.*_renderedfields (e.g.seo_title_rendered) carry the fully-expanded front-end output, not the raw template. This distinction is worth confirming is clearly communicated in the docs.update-post-seo-data(POST) is inferred from thereadonly: falseannotation and standard REST conventions; the WordPress Abilities API run endpoint should be verified to accept POST for write abilities.can_read_scores()is deprecated in 28.2 in favour ofcan_manage_seo()— no doc change needed as this is an internal PHP method, not a public hook or filter.Authored by the RC docs-sync agent. Not auto-merged — requires human review. Run: https://github.com/Yoast/developer/actions/runs/29898596275