WP_Date_Query::sanitize_query

Advertisement

Summery Summery

Recursive-friendly query sanitizer.

Syntax Syntax

WP_Date_Query::sanitize_query( array $queries, array $parent_query = null )

Description Description

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

Parameters Parameters

$queries

(array) (Required)

$parent_query

(array) (Optional)

Default value: null

Return Return

(array) Sanitized queries.

Source Source

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


			

Advertisement

Changelog Changelog

Changelog
Version Description
4.1.0 Introduced.

Advertisement

Leave a Reply

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