SEOPress & Rank Math compat'#27
Open
firestar300 wants to merge 5 commits into
Open
Conversation
Extract shared FAQ schema generation and resolve Yoast or SEOPress at runtime, with both plugins available in wp-env via Composer.
Register a dedicated service using rank_math/json_ld and include the plugin in the local wp-env setup via Composer.
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.
Note
Medium Risk
Changes how FAQ JSON-LD is emitted across three SEO plugins; incorrect resolver priority or merge logic could duplicate or omit schema on production pages, though scope is limited to FAQ structured data.
Overview
Extends FAQ structured data beyond Yoast by introducing a SEO service layer (
Seo_Service_Interface,Seo_Service_Resolver) that registers hooks for Yoast, Rank Math, and SEOPress based on which plugin is active (Yoast first in priority, overridable via filters).Schema building is centralized in
FAQ_Schema_Generator(shared question/answer extraction fromblockparty/faqblocks); Yoast keeps graph-piece integration viaFAQ_Schema, while Rank Math hooksrank_math/json_ldand SEOPress merges into FAQ filters with awp_headfallback when filters do not run.Local dev now pulls Yoast, Rank Math, and SEOPress via Composer into
.wp-env/plugins/, mounts them in.wp-env.json, and documentscomposer install+npm run env:startinstead of Yoast-only npm setup scripts. Psalm and related dev deps are removed fromcomposer.json;composer.lockand plugin dirs are gitignored.Reviewed by Cursor Bugbot for commit 11a4c9b. Bugbot is set up for automated code reviews on this repo. Configure here.