Skip to content

Yoast SEO 27.8 — docs(customization-free): Document new wpseo_custom_fields_pre_query filter#400

Open
claude[bot] wants to merge 1 commit into
mainfrom
rc-sync/wordpress-seo/27.8-RC1/customization-free
Open

Yoast SEO 27.8 — docs(customization-free): Document new wpseo_custom_fields_pre_query filter#400
claude[bot] wants to merge 1 commit into
mainfrom
rc-sync/wordpress-seo/27.8-RC1/customization-free

Conversation

@claude
Copy link
Copy Markdown

@claude claude Bot commented May 28, 2026

RC docs sync — 27.8-RC1

Product: wordpress-seo
Area: customization-free
Source evidence:

  • inc/class-wpseo-custom-fields.php:83-103: new apply_filters('wpseo_custom_fields_pre_query', null, $limit) call — filter short-circuits the SELECT DISTINCT meta_key query against wp_postmeta

Changes in this PR

  • docs/customization/yoast-seo/filters/custom-fields-pre-query-filter.md — new page documenting the wpseo_custom_fields_pre_query filter with two usage examples
  • sidebars.js — adds the new page to the Yoast SEO customization navigation

Verification

  • yarn build passes locally in this workflow.
  • yarn lint clean for files touched by this PR.

Reviewer notes

No behavioral ambiguity — the filter is fully described by its PHPDoc and changelog entry. The two examples (hardcoded list and transient-cached fallback) cover the main use cases. Priority and argument count (10, 2) confirmed from the source.


Authored by the RC docs-sync agent. Not auto-merged — requires human review. Run: https://github.com/Yoast/developer/actions/runs/26561237947

Introduces documentation for the new `wpseo_custom_fields_pre_query`
filter added in Yoast SEO 27.8-RC1. The filter allows sites to
short-circuit the potentially expensive `SELECT DISTINCT meta_key`
query on `wp_postmeta` by supplying a pre-computed list.
@claude claude Bot added rc-doc-sync RC documentation sync PR product/wordpress-seo Related to Yoast SEO for WordPress area/customization-free Related to customization of Yoast SEO (free) rc/27.8-RC1 RC 27.8-RC1 docs sync labels May 28, 2026
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying yoast-developer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 357144a
Status: ✅  Deploy successful!
Preview URL: https://5262c598.yoast-developer.pages.dev
Branch Preview URL: https://rc-sync-wordpress-seo-27-8-r.yoast-developer.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/customization-free Related to customization of Yoast SEO (free) product/wordpress-seo Related to Yoast SEO for WordPress rc/27.8-RC1 RC 27.8-RC1 docs sync rc-doc-sync RC documentation sync PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants