Summery Summery
Parse an ‘order’ query variable and cast it to ASC or DESC as necessary.
Syntax Syntax
Parameters Parameters
- $order
-
(Required) The 'order' query variable.
Return Return
(string) The sanitized 'order' query variable.
Source Source
File: wp-includes/class-wp-term-query.php
} /** * Parse an 'order' query variable and cast it to ASC or DESC as necessary. * * @since 4.6.0 * * @param string $order The 'order' query variable. * @return string The sanitized 'order' query variable. */ protected function parse_order( $order ) {
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |