Automattic\WooCommerce\Internal\DataStores\Orders

LegacyDataHandler::get_order_base_props()privateWC 1.0

Returns names of all order base properties supported by HPOS.

Method of the class: LegacyDataHandler{}

No Hooks.

Return

String[]. Property names.

Usage

// private - for code of main (parent) class only
$result = $this->get_order_base_props(): array;

LegacyDataHandler::get_order_base_props() code WC 9.8.2

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;
}