UserOrder final class
Minn\Runtime\UserOrder · public/minn/src/Minn/Runtime/UserOrder.php · 43 lines
A user query's ORDER BY keys as the reference writes them (probe wp-user-query-sql): the user columns by their short or full names, the display name, a post count (its subquery joined in), the id, the meta key or meta value, the order include or a name list gives, or a named meta clause; '' for a key it does not know.
Uses 1
Used by 1
Constants and properties
| private | SHORT = array ( 0 => 'login', 1 => 'nicename', 2 => 'email', 3 => 'url', 4 => 'registered', ) | |
| private | FULL = array ( 0 => 'user_login', 1 => 'user_nicename', 2 => 'user_email', 3 => 'user_url', 4 => 'user_registered', ) |
Public
Internals 1
Private and protected methods: how the class does its work. Not a contract; they change whenever the code is tidied.
| private | postCount(WP_User_Query $query, object $wpdb): string# | Joins each author's published post count in, and orders by it. |
Nothing matches.