WP_Meta_Query::get_clauses()publicWP 4.2.0

Get a flattened list of sanitized meta clauses.

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.

Method of the class: WP_Meta_Query{}

No Hooks.

Return

Array. Meta clauses.

Usage

$WP_Meta_Query = new WP_Meta_Query();
$WP_Meta_Query->get_clauses();

Changelog

Since 4.2.0 Introduced.

WP_Meta_Query::get_clauses() code WP 6.1.1

public function get_clauses() {
	return $this->clauses;
}