WP_Date_Query::get_sql_for_subquery

SummerySummery

Turns a single date clause into pieces for a WHERE clause.

Syntax

WP_Date_Query::get_sql_for_subquery( array $query )

DescriptionDescription

A wrapper for get_sql_for_clause(), included here for backward compatibility while retaining the naming convention across Query classes.

ParametersParameters

$query

(array) (Required) Date query arguments.

ReturnReturn

(array) Array containing JOIN and WHERE SQL clauses to append to the main query.

  • 'join'
    (string) SQL fragment to append to the main JOIN clause.
  • 'where'
    (string) SQL fragment to append to the main WHERE clause.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
3.7.0 Introduced.
Scroll to Top