Skip to content

[DevHub] Incorrect orderby parameters for WP_User_Query #1470

@crstauf

Description

@crstauf

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions