[wp-trac] [WordPress Trac] #49418: Ability to order users by number of posts in custom post type

WordPress Trac noreply at wordpress.org
Tue Jul 8 17:54:22 UTC 2025


#49418: Ability to order users by number of posts in custom post type
-------------------------------+------------------------------
 Reporter:  meevly             |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Users              |     Version:  5.4
 Severity:  trivial            |  Resolution:
 Keywords:  close 2nd-opinion  |     Focuses:
-------------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => close 2nd-opinion


Comment:

 I am less sure about leaving this to plugins than I was five years ago,
 but the ticket does not have any activity since then.

 For an update on the hardcoded `post` location, it is now on
 [https://github.com/WordPress/wordpress-develop/blob/6.8.1/src/wp-includes
 /class-wp-user-query.php#L1008 line 1008] in
 `WP_User_Query::parse_orderby()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49418#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list