WP_Site_Query::parse_order

SummerySummery

Parses an ‘order’ query variable and cast it to ‘ASC’ or ‘DESC’ as necessary.

Syntax

WP_Site_Query::parse_order( string $order )

ParametersParameters

$order

(string) (Required) The 'order' query variable.

ReturnReturn

(string) The sanitized 'order' query variable.

SourceSource

File: wp-includes/class-wp-site-query.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Introduced.
Scroll to Top