WP_Term_Query::parse_order

SummerySummery

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

Syntax

WP_Term_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-term-query.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Introduced.
Scroll to Top