WP_Term_Query::parse_order

Advertisement

Summery Summery

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

Syntax Syntax

WP_Term_Query::parse_order( string $order )

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

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply