WP_Meta_Query::get_sql_clauses

SummerySummery

Generate SQL clauses to be appended to a main query.

Syntax

WP_Meta_Query::get_sql_clauses()

DescriptionDescription

Called by the public WP_Meta_Query::get_sql(), this method is abstracted out to maintain parity with the other Query classes.

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-meta-query.php


			

ChangelogChangelog

Changelog
Version Description
4.1.0 Introduced.
Scroll to Top