Used By
Used By | Description |
---|---|
wp-includes/class-wp-site-query.php: WP_Site_Query::get_site_ids() | Used internally to get a list of site IDs matching the query vars. |
Parses an ‘order’ query variable and cast it to ‘ASC’ or ‘DESC’ as necessary.
(string) (Required) The 'order' query variable.
(string) The sanitized 'order' query variable.
File: wp-includes/class-wp-site-query.php
protected function parse_order( $order ) { if ( ! is_string( $order ) || empty( $order ) ) { return 'ASC'; } if ( 'ASC' === strtoupper( $order ) ) { return 'ASC'; } else { return 'DESC'; } }
Version | Description |
---|---|
4.6.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_site_query/parse_order