Directory

Incorrect `orderby` parameters for `WP_User_Query` · Issue #1470 · WordPress/Documentation-Issue-Tracker · GitHub
Skip to content
New issue

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

Incorrect orderby parameters for WP_User_Query #1470

Open
crstauf opened this issue Feb 23, 2024 · 5 comments
Open

Incorrect orderby parameters for WP_User_Query #1470

crstauf opened this issue Feb 23, 2024 · 5 comments
Assignees
Labels

Comments

@crstauf
Copy link

crstauf commented Feb 23, 2024

Issue Description

Under $orderby parameters

display_name – Order by user display name.
name / user_name – Order by user name.

should be

display_name name / – Order by user display name.

There is no “Order by user name” parameter that is distinct from the display name. [Code Source]. There is a nicename option, but that’s already documented.

Reported by helgatheviking via User Contributed Notes.

URL of the Page with the Issue

https://developer.wordpress.org/reference/classes/wp_user_query/#order-orderby-parameters

Section of Page with the issue

Order & Orderby Parameters

Why is this a problem?

Indicates a parameter that doesn't exist in code.

Suggested Fix

@crstauf crstauf added the [Status] To do Issue marked as Todo label Feb 23, 2024
Copy link

Heads up @WordPress/docs-issues-coordinators, we have a new issue open. Time to use 'em labels.

@speedyprem
Copy link

/assign me

Copy link

Hey @speedyprem, thanks for your interest in this issue! 🍪🍪🍪
If you have any questions, do not hesitate to ask them in our #docs Slack channel.
Enjoy and happy contributing ❤️

@speedyprem
Copy link

‘display_name‘ – Order by user display name.
‘user_login‘ – Order by user name.

@speedyprem
Copy link

This issue is ready for review.

/review

@github-actions github-actions bot added [Status] Review Issue in review and removed [Status] To do Issue marked as Todo labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants