Open crstauf opened 12 months ago
In WordPress 6.2, the parameter search_columns was added to WP_Query, which allows the query to specify the columns to search. This parameter is not mentioned in documentation, but it should be.
search_columns
WP_Query
https://developer.wordpress.org/reference/classes/wp_query/#search-parameters
Parameters > Search Parameters
Documentation should be thorough and helpful: wanting to specify columns to search is a common request.
Ex: https://wordpress.stackexchange.com/questions/417138/how-to-use-wp-query-to-search-for-posts-where-post-content-or-post-title-or-post/417139
Add documentation for the search_columns parameter to the Search Parameters section of WP_Query class.
Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.
Hmm; search_terms/sentence should also probably be added to documentation.
search_terms
sentence
Issue Description
In WordPress 6.2, the parameter
search_columns
was added toWP_Query
, which allows the query to specify the columns to search. This parameter is not mentioned in documentation, but it should be.URL of the Page with the Issue
https://developer.wordpress.org/reference/classes/wp_query/#search-parameters
Section of Page with the issue
Parameters > Search Parameters
Why is this a problem?
Documentation should be thorough and helpful: wanting to specify columns to search is a common request.
Ex: https://wordpress.stackexchange.com/questions/417138/how-to-use-wp-query-to-search-for-posts-where-post-content-or-post-title-or-post/417139
Suggested Fix
Add documentation for the
search_columns
parameter to the Search Parameters section ofWP_Query
class.