Automattic\WooCommerce\Internal\Admin

OrderTaxLookupMigrator::get_pending_passes │ private │ WC 1.0

The passes the rebuild makes over the lookup table. A pass is only offered once the columns it reads exist.

Method of the class: OrderTaxLookupMigrator{}

No Hooks.

Returns

array[]. List of array('condition'=> string,'cursor'=> string ).

Usage

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

OrderTaxLookupMigrator::get_pending_passes() code WC 11.3.0

private function get_pending_passes(): array {
	$passes = array(
		array(
			'condition' => 'order_item_id = 0',
			'cursor'    => self::CURSOR_OPTION,
		),
	);

	if ( TaxesDataStore::has_taxable_amount_split_columns() ) {
		$passes[] = array(
			'condition' => 'order_taxable_amount IS NULL',
			'cursor'    => self::SPLIT_CURSOR_OPTION,
		);
	}

	return $passes;
}