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
Open
Conversation
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.
Deploying yoast-developer with
|
| 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 |
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 — 27.8-RC1
Product: wordpress-seo
Area: customization-free
Source evidence:
inc/class-wpseo-custom-fields.php:83-103: newapply_filters('wpseo_custom_fields_pre_query', null, $limit)call — filter short-circuits the SELECT DISTINCT meta_key query against wp_postmetaChanges in this PR
docs/customization/yoast-seo/filters/custom-fields-pre-query-filter.md— new page documenting thewpseo_custom_fields_pre_queryfilter with two usage examplessidebars.js— adds the new page to the Yoast SEO customization navigationVerification
yarn buildpasses locally in this workflow.yarn lintclean 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