WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API\Reports

SqlQuery::str_replace_clause() protected WC 1.0

Replace strings within SQL clauses by type.

{} It's a method of the class: SqlQuery{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->str_replace_clause( $type, $search, $replace );
$type(string) (required)
Clause type.
$search(string) (required)
String to search for.
$replace(string) (required)
Replacement string.

Code of SqlQuery::str_replace_clause() WC 5.2.2

<?php
protected function str_replace_clause( $type, $search, $replace ) {
	if ( isset( $this->sql_clauses[ $type ] ) ) {
		foreach ( $this->sql_clauses[ $type ] as $key => $sql ) {
			$this->sql_clauses[ $type ][ $key ] = str_replace( $search, $replace, $sql );
		}
	}
}