Skip to content

SEOPress & Rank Math compat'#27

Merged
firestar300 merged 6 commits into
developfrom
feature/seo-press-compat
Jun 30, 2026
Merged

SEOPress & Rank Math compat'#27
firestar300 merged 6 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 schema is emitted across three SEO integrations; duplicate active plugins or resolver priority could produce unexpected structured data on the front end.

Overview
FAQ structured data is no longer Yoast-only: the plugin bootstrap now loads a shared schema layer (FAQ_Schema_Generator, Yoast graph piece) and SEO plugin adapters (Yoast, Rank Math, SEOPress) resolved at runtime via Seo_Service_Resolver on plugins_loaded.

Local dev and tooling shift from npm-installed Yoast to Composer: Yoast, Rank Math, and SEOPress are pulled as dev dependencies into .wp-env/plugins/ (pinned versions, wp-packages repo) and mounted in .wp-env.json. README steps use composer install and npm run env:start / env:stop instead of setup:env / install:yoast. Composer gains PSR-4 autoload for Blockparty\Faq\, drops Psalm-related packages, and .gitignore ignores composer.lock and plugin install dir.

Risk is mainly wrong or duplicate FAQ JSON-LD if more than one SEO plugin is active—the resolver picks the first match in priority order (Yoast → Rank Math → SEOPress).

Reviewed by Cursor Bugbot for commit af49dcc. 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
Configures Composer to use PSR-4 for the `Blockparty\Faq\` namespace. This involves adding the `autoload` section to `composer.json`, including `vendor/autoload.php`, and renaming class directories (e.g., `schema` to `Schema`) to align with PSR-4 capitalization standards.

This improves class management, code organization, and facilitates future development by adhering to modern PHP practices.
@firestar300 firestar300 merged commit 5ca1d88 into develop Jun 30, 2026
2 checks passed
@firestar300 firestar300 deleted the feature/seo-press-compat branch June 30, 2026 09:50
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.

2 participants