WC_Data_Store::read_multiple
Reads multiple objects from the data store.
Метод класса: WC_Data_Store{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Data_Store = new WC_Data_Store(); $WC_Data_Store->read_multiple( $objects );
- $objects(array[WC_Data]) (передается по ссылке — &)
- Array of object instances to read.
По умолчанию:array()
Список изменений
| С версии 6.9.0 | Введена. |
Код WC_Data_Store::read_multiple() WC Data Store::read multiple WC 11.0.1
public function read_multiple( &$objects = array() ) {
// If the datastore allows for bulk-reading, use it.
if ( is_callable( array( $this->instance, 'read_multiple' ) ) ) {
$this->instance->read_multiple( $objects );
} else {
foreach ( $objects as &$obj ) {
$this->read( $obj );
}
}
}