Automattic\WooCommerce\Internal\DataStores\Orders
LegacyDataHandler::get_order_base_props
Returns names of all order base properties supported by HPOS.
Method of the class: LegacyDataHandler{}
No Hooks.
Returns
String[]. Property names.
Usage
// private - for code of main (parent) class only $result = $this->get_order_base_props(): array;
LegacyDataHandler::get_order_base_props() LegacyDataHandler::get order base props code WC 10.5.0
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;
}