WP_Network_Query::parse_order

Advertisement

Summery Summery

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

Syntax Syntax

WP_Network_Query::parse_order( string $order )

Parameters Parameters

$order

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

Return Return

(string) The sanitized 'order' query variable.

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.