BP_Messages_Notice::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-notice.php
407 408 409 410 411 412 413 414 415 416 | protected static function convert_orderby_to_order_by_term( $orderby ) { switch ( $orderby ) { case 'date_sent' : default : $order_by_term = 'mn.date_sent' ; break ; } return $order_by_term ; } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.5.4 | 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.