Automattic\WooCommerce\Internal\Admin\Reports

HposLegacyOrderReportQueryBuilder::is_money_meta_key │ private │ WC 1.0

Whether a data row resolves to a mapped HPOS money column.

Method of the class: HposLegacyOrderReportQueryBuilder{}

No Hooks.

Returns

bool.

Usage

// private - for code of main (parent) class only
$result = $this->is_money_meta_key( $type, $raw_key ): bool;
$type(string) (required)
Row type.
$raw_key(string) (required)
Original meta key.

HposLegacyOrderReportQueryBuilder::is_money_meta_key() code WC 11.1.2

private function is_money_meta_key( $type, $raw_key ): bool {
	if ( 'meta' !== $type && 'parent_meta' !== $type ) {
		return false;
	}

	$schema = $this->get_report_schema();
	return isset( $schema['order_column'][ $raw_key ] ) || isset( $schema['op_data_column'][ $raw_key ] );
}