BP_Messages_Message::convert_orderby_to_order_by_term( string $orderby )
Convert the ‘orderby’ param into a proper SQL term/column.
Description
Parameters
- $orderby
-
(Required) Orderby term as passed to get().
Return
(string) $order_by_term SQL-friendly orderby term.
Source
File: bp-messages/classes/class-bp-messages-message.php
817 818 819 820 821 822 823 824 825 826 827 828 | protected static function convert_orderby_to_order_by_term( $orderby ) { $order_by_term = '' ; switch ( $orderby ) { case 'date_sent' : default : $order_by_term = 'm.date_sent' ; break ; } return $order_by_term ; } |
Changelog
Version | Description |
---|---|
BuddyPress 1.8.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.