Yoast\WP\Lib
ORM::where_id_in()
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() ORM::where id in Yoast 24.0
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 ); }