MetaToCustomTableMigrator::verify_data()protectedWC 1.0

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

Метод класса: MetaToCustomTableMigrator{}

Хуков нет.


Массив. Array of failed IDs if any, along with columns/meta_key names.


// protected - в коде основоного (родительского) или дочернего класса
$result = $this->verify_data( $collected_data );
$collected_data(массив) (обязательный)
Collected data in array format, should be in same structure as returned from query in $this->build_verification_query.

Код MetaToCustomTableMigrator::verify_data() WC 9.1.2

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;