Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostToOrderAddressTableMigrator::get_where_clause_for_verification()
Helper function to generate where clause for fetching data for verification.
Method of the class: PostToOrderAddressTableMigrator{}
No Hooks.
Return
String
. WHERE clause.
Usage
// protected - for code of main (parent) or child class $result = $this->get_where_clause_for_verification( $source_ids );
- $source_ids(array) (required)
- Array of IDs from source table.
PostToOrderAddressTableMigrator::get_where_clause_for_verification() PostToOrderAddressTableMigrator::get where clause for verification code WC 9.7.1
protected function get_where_clause_for_verification( $source_ids ) { global $wpdb; $query = parent::get_where_clause_for_verification( $source_ids ); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared -- $query should already be prepared, $schema_config is hardcoded. return $wpdb->prepare( "$query AND {$this->schema_config['destination']['table_name']}.address_type = %s", $this->type ); }