[wp-trac] [WordPress Trac] #63103: Add 'orderby'=>'rand' option for get_users() function
WordPress Trac
noreply at wordpress.org
Fri Mar 14 13:22:05 UTC 2025
#63103: Add 'orderby'=>'rand' option for get_users() function
-----------------------------+-----------------------------
Reporter: letraceursnork | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.7.2
Severity: trivial | Keywords:
Focuses: |
-----------------------------+-----------------------------
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
<?php
get_users(['orderby'=>'rand']);
}}}
possibility
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63103>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list