Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#60608 new enhancement

Missing REST API users endpoint orderby parameters

Reported by: helgatheviking's profile helgatheviking Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: REST API Keywords:
Focuses: Cc:

Description (last modified by swissspidy)

Allowed orderby params in users endpoint

compared to

Supported orderby params in `WP_Users_Query`

The rest endpoint is missing support for ordering by

  • 'user_login' (or 'login')
  • 'post_count'
  • 'meta_value',
  • 'meta_value_num'
  • 'loginin'

I don't know how complex the meta would be, nor do I fully understand what login__in actually does, but for sure the endpoint is missing the ability to order by the user's login/username which can be different from the nicename.

Change History (1)

#1 @swissspidy
3 months ago

  • Component changed from General to REST API
  • Description modified (diff)
  • Type changed from defect (bug) to enhancement
Note: See TracTickets for help on using tickets.