MetaToCustomTableMigrator::verify_data()protectedWC 1.0

Verify data from both source and destination tables and check if they were migrated properly.

Method of the class: MetaToCustomTableMigrator{}

No Hooks.


Array. Array of failed IDs if any, along with columns/meta_key names.


// protected - for code of main (parent) or child class
$result = $this->verify_data( $collected_data );
$collected_data(array) (required)
Collected data in array format, should be in same structure as returned from query in $this->build_verification_query.

MetaToCustomTableMigrator::verify_data() code WC 8.9.0

protected function verify_data( $collected_data ) {
	$failed_ids = array();
	foreach ( $collected_data as $row ) {
		$failed_ids = $this->verify_entity_columns( $row, $failed_ids );
		$failed_ids = $this->verify_meta_columns( $row, $failed_ids );

	return $failed_ids;