Automattic\WooCommerce\Internal\DataStores\Orders
LegacyDataHandler::get_order_base_props
Returns names of all order base properties supported by HPOS.
Метод класса: LegacyDataHandler{}
Хуков нет.
Возвращает
Строку[]. Property names.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_order_base_props(): array;
Код LegacyDataHandler::get_order_base_props() LegacyDataHandler::get order base props WC 10.9.4
private function get_order_base_props(): array {
$base_props = array();
foreach ( $this->data_store->get_all_order_column_mappings() as $mapping ) {
$base_props = array_merge( $base_props, array_column( $mapping, 'name' ) );
}
return $base_props;
}