Automattic\WooCommerce\Admin\API\Reports

SqlQuery::clear_sql_clause()protectedWC 1.0

Clear SQL clauses by type.

Method of the class: SqlQuery{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->clear_sql_clause( $types );
$types(string|array) (required)
Clause type.

SqlQuery::clear_sql_clause() code WC 8.7.0

protected function clear_sql_clause( $types ) {
	foreach ( (array) $types as $type ) {
		if ( isset( $this->sql_clauses[ $type ] ) ) {
			$this->sql_clauses[ $type ] = array();
		}
	}
}