Skip to content

SEOPress & Rank Math compat'#27

Open
firestar300 wants to merge 5 commits into
developfrom
feature/seo-press-compat
Open

SEOPress & Rank Math compat'#27
firestar300 wants to merge 5 commits into
developfrom
feature/seo-press-compat

Conversation

@firestar300

@firestar300 firestar300 commented Jun 26, 2026

Copy link
Copy Markdown
Contributor
  • Compatibilité avec SEOPress et Rank Math pour la génération des données structurées

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 from blockparty/faq blocks); Yoast keeps graph-piece integration via FAQ_Schema, while Rank Math hooks rank_math/json_ld and SEOPress merges into FAQ filters with a wp_head fallback 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 documents composer install + npm run env:start instead of Yoast-only npm setup scripts. Psalm and related dev deps are removed from composer.json; composer.lock and plugin dirs are gitignored.

Reviewed by Cursor Bugbot for commit 11a4c9b. Bugbot is set up for automated code reviews on this repo. Configure here.

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.
@firestar300 firestar300 requested a review from petitphp June 26, 2026 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant