WP_Tax_Query::sanitize_query

SummerySummery

Ensure the ‘tax_query’ argument passed to the class constructor is well-formed.

Syntax

WP_Tax_Query::sanitize_query( array $queries )

DescriptionDescription

Ensures that each query-level clause has a ‘relation’ key, and that each first-order clause contains all the necessary keys from $defaults.

ParametersParameters

$queries

(array) (Required) Array of queries clauses.

ReturnReturn

(array) Sanitized array of query clauses.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top