Yoast\WP\Lib

ORM::add_where()protectedYoast 1.0

Adds a WHERE condition to the query. Internal method.

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

Хуков нет.

Возвращает

ORM.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->add_where( $fragment, $values );
$fragment(строка) (обязательный)
The fragment.
$values(массив)
The values.
По умолчанию: an empty array

Код ORM::add_where() Yoast 22.4

protected function add_where( $fragment, $values = [] ) {
	return $this->add_condition( 'where', $fragment, $values );
}