Yoast SEO 27.8 — docs(customization-free): Document new wpseo_custom_fields_pre_query filter#401
Open
claude[bot] wants to merge 1 commit into
Open
Conversation
…filter Introduced in Yoast SEO 27.8-RC2: new filter allows sites to short-circuit the potentially expensive SELECT DISTINCT meta_key query on large postmeta tables by supplying a pre-computed or alternative list of custom field keys.
Deploying yoast-developer with
|
| Latest commit: |
5107a12
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e7a5b3a9.yoast-developer.pages.dev |
| Branch Preview URL: | https://rc-sync-wordpress-seo-27-8-r-u323.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-RC2
Product: wordpress-seo
Area: customization-free
Source evidence:
inc/class-wpseo-custom-fields.php:95:apply_filters('wpseo_custom_fields_pre_query', null, $limit)— new filter introducedwpseo_custom_fields_pre_queryfilter, allowing sites to short-circuit the potentially expensive custom-fields lookup in Yoast settings, with a pre-computed list or a custom query."Changes in this PR
docs/customization/yoast-seo/filters/custom-fields-pre-query-filter.md— new page documenting thewpseo_custom_fields_pre_queryfilter with usage examplessidebars.js— added navigation entry for the new filter page under Yoast SEO customizationVerification
yarn buildpasses locally in this workflow.yarn lintclean for files touched by this PR.Reviewer notes
The filter was introduced in
inc/class-wpseo-custom-fields.php. The PHPDoc block in the source clearly describes@param string[]|null $custom_fieldsand@param int $limit, and confirms that returning a non-null array short-circuits the defaultSELECT DISTINCT meta_keyquery. The two examples (static list and cached list) cover the primary use cases from the PHPDoc description.Authored by the RC docs-sync agent. Not auto-merged — requires human review. Run: https://github.com/Yoast/developer/actions/runs/26561237947