Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderAddressTableMigrator::get_additional_where_clause_for_get_data_to_insert_or_update()
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() PostToOrderAddressTableMigrator::get additional where clause for get data to insert or update code WC 9.7.1
protected function get_additional_where_clause_for_get_data_to_insert_or_update( array $entity_ids ): string { return "AND destination.`address_type` = '{$this->type}'"; }