PostToOrderAddressTableMigrator::get_where_clause_for_verification()protectedWC 1.0

Helper function to generate where clause for fetching data for verification.

{} It's a method of the class: PostToOrderAddressTableMigrator{}

No Hooks.


String. WHERE clause.


// 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.

Code of PostToOrderAddressTableMigrator::get_where_clause_for_verification() WC 7.1.0

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 );