LLMS_Admin_Table::get_new_order( $orderby = '' )
Gets the opposite of the current order.
Description Description
Used to determine what order should be displayed when resorting.
Return Return
(string)
Source Source
File: includes/abstracts/abstract.llms.admin.table.php
protected function get_new_order( $orderby = '' ) { // Current order matches submitted order, return opposite. if ( $this->orderby === $orderby ) { return ( 'ASC' === $this->order ) ? 'DESC' : 'ASC'; } else { return 'ASC'; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |