WP_Meta_Query::get_clauses() WordPress Method
The WP_Meta_Query::get_clauses() method is used to get the SQL clauses for a meta query. This is useful for turning a meta query into SQL.
WP_Meta_Query::get_clauses() #
Get a flattened list of sanitized meta clauses.
Contents
Description
This array should be used for clause lookup, as when the table alias and CAST type must be determined for a value of ‘orderby’ corresponding to a meta clause.
Return
(array) Meta clauses.
Source
File: wp-includes/class-wp-meta-query.php
public function get_clauses() { return $this->clauses; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |