WP_Meta_Query::sanitize_query

SummerySummery

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

Syntax

WP_Meta_Query::sanitize_query( array $queries )

DescriptionDescription

Eliminates empty items and ensures that a ‘relation’ is set.

ParametersParameters

$queries

(array) (Required) Array of query clauses.

ReturnReturn

(array) Sanitized array of query clauses.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top