Make WordPress Core

Opened 17 months ago

#63103 new feature request

Add 'orderby'=>'rand' option for get_users() function

Reported by: letraceursnork Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version: 6.7.2
Severity: trivial Keywords:
Cc: Focuses:

Description

Recently I've faced the problem when I need to get random user (in my case it's only one, but I see that it could be many). I solved it the other way, but I thought that it is very inconvenient that developers need to reinvent the wheel every time by their own instead of we just add

<?php
get_users(['orderby'=>'rand']);

possibility

Change History (0)

Note: See TracTickets for help on using tickets.