Automattic\WooCommerce\Admin\API\Reports

SqlQuery::clear_all_clauses()publicWC 1.0

Reinitialize the clause array.

Method of the class: SqlQuery{}

No Hooks.

Return

null. Nothing.

Usage

$SqlQuery = new SqlQuery();
$SqlQuery->clear_all_clauses();

SqlQuery::clear_all_clauses() code WC 7.3.0

public function clear_all_clauses() {
	$this->sql_clauses = array(
		'select'     => array(),
		'from'       => array(),
		'left_join'  => array(),
		'join'       => array(),
		'right_join' => array(),
		'where'      => array(),
		'where_time' => array(),
		'group_by'   => array(),
		'having'     => array(),
		'limit'      => array(),
		'order_by'   => array(),
	);
}