WordPress at a glance
function is not described

Automattic\WooCommerce\Admin

Install::migrate_options() public WC 1.0

Migrate option values to their new keys/names.

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

No Hooks.

Return

null. Nothing.

Usage

$result = Install::migrate_options();

Code of Install::migrate_options() WC 5.3.0

<?php
public static function migrate_options() {
	wc_maybe_define_constant( 'WC_ADMIN_MIGRATING_OPTIONS', true );

	foreach ( self::$migrated_options as $new_option => $old_option ) {
		$old_option_value = get_option( $old_option, false );

		// Continue if no option value was previously set.
		if ( false === $old_option_value ) {
			continue;
		}

		if ( '1' === $old_option_value ) {
			$old_option_value = 'yes';
		} elseif ( '0' === $old_option_value ) {
			$old_option_value = 'no';
		}

		update_option( $new_option, $old_option_value );
		if ( $new_option !== $old_option ) {
			delete_option( $old_option );
		}
	}
}