Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostToOrderAddressTableMigrator::get_additional_where_clause_for_get_data_to_insert_or_update()protectedWC 1.0

Additional WHERE clause to only fetch the addresses of the current type.

Method of the class: PostToOrderAddressTableMigrator{}

No Hooks.

Return

String. The additional string for the WHERE clause.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_additional_where_clause_for_get_data_to_insert_or_update( $entity_ids ): string;
$entity_ids(array) (required)
The ids of the entities being inserted or updated.

PostToOrderAddressTableMigrator::get_additional_where_clause_for_get_data_to_insert_or_update() code WC 8.7.0

protected function get_additional_where_clause_for_get_data_to_insert_or_update( array $entity_ids ): string {
	return "AND destination.`address_type` = '{$this->type}'";
}