Yoast\WP\Lib

ORM::where_raw()publicYoast 1.0

Adds a raw WHERE clause to the query. The clause should contain question mark placeholders, which will be bound to the parameters supplied in the second argument.

Метод класса: ORM{}

Хуков нет.

Возвращает

ORM.

Использование

$ORM = new ORM();
$ORM->where_raw( $clause, $parameters );
$clause(строка) (обязательный)
The clause that should contain question mark placeholders.
$parameters(массив)
The parameters to include in the query.
По умолчанию: []

Код ORM::where_raw() Yoast 22.4

public function where_raw( $clause, $parameters = [] ) {
	return $this->add_where( $clause, $parameters );
}