LLMS_Database_Query::sql_orderby()
Retrieve the prepared SQL for the ORDER clause
Description Description
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
protected function sql_orderby() { $sql = 'ORDER BY'; $comma = false; foreach ( $this->get( 'sort' ) as $orderby => $order ) { $pre = ( $comma ) ? ', ' : ' '; $sql .= $pre . "{$orderby} {$order}"; $comma = true; } if ( $this->get( 'suppress_filters' ) ) { return $sql; } return apply_filters( $this->get_filter( 'orderby' ), $sql, $this ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |