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.
Метод класса: PostToOrderAddressTableMigrator{}
Хуков нет.
Возвращает
Строку
. The additional string for the WHERE clause.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_additional_where_clause_for_get_data_to_insert_or_update( $entity_ids ): string;
- $entity_ids(массив) (обязательный)
- 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 WC 7.7.2
protected function get_additional_where_clause_for_get_data_to_insert_or_update( array $entity_ids ): string { return "AND destination.`address_type` = '{$this->type}'"; }