[wp-trac] [WordPress Trac] #31122: Custom orderby keys for queries

WordPress Trac noreply at wordpress.org
Sun Jan 25 14:02:25 UTC 2015


#31122: Custom orderby keys for queries
-------------------------+-----------------------------
 Reporter:  Funkatronic  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Query        |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 This proposed enhancement allows for custom keys for the `orderby`
 argument in `WP_Query` and the accompanying mySQL clauses.  This involves
 2 new filters in the `WP_Query` method `parse_orderby`:
 `allowed_orderby_keys`, which allows the addition of new `orderby` keys
 other than the defaults and `parse_orderby`, which allows a user to create
 mySQL code for both new and current `orderby` keys.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31122>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list