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.

Метод класса: 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() 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}'";
}