Automattic\WooCommerce\Database\Migrations

TableMigrator::fetch_sanitized_migration_data()publicWC 1.0

Return data to be migrated for a batch of entities.

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

Хуков нет.

Возвращает

Массив[]. Data to be migrated. Would be of the form: array( 'data' => array( ... ), 'errors' => array( ... ) ).

Использование

$TableMigrator = new TableMigrator();
$TableMigrator->fetch_sanitized_migration_data( $entity_ids );
$entity_ids(массив) (обязательный)
Ids of entities to migrate.

Код TableMigrator::fetch_sanitized_migration_data() WC 9.2.3

public function fetch_sanitized_migration_data( array $entity_ids ) {
	throw new \Exception( 'Not implemented' );
}