Parameter search_columns
for WP_Query
is not documented
#1384
Labels
[Status] To do
Issue marked as Todo
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
search_columns
for WP_Query
is not documented
#1384
Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels. |
Hmm; |
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.The text was updated successfully, but these errors were encountered: