Yoast\WP\Lib

ORM::where_id_in()publicYoast 1.0

Queries the table by its primary key.

Similar to where_id_is() but allowing multiple primary keys. If primary key is compound, only the columns that belong to they key will be used for the query.

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

Хуков нет.

Возвращает

ORM.

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

$ORM = new ORM();
$ORM->where_id_in( $ids );
$ids(string[]) (обязательный)
The IDs.

Код ORM::where_id_in() Yoast 22.4

public function where_id_in( $ids ) {
	return \is_array( $this->get_id_column_name() ) ? $this->where_any_is( $this->get_compound_id_column_values_array( $ids ) ) : $this->where_in( $this->get_id_column_name(), $ids );
}