WordPress at Your Fingertips
function is not described

wc_update_370_tax_rate_classes() WC 1.0

Put tax classes into a DB table.

No Hooks.

Return

null. Nothing.

Usage

wc_update_370_tax_rate_classes();

Code of wc_update_370_tax_rate_classes() WC 5.5.2

<?php
function wc_update_370_tax_rate_classes() {
	global $wpdb;

	$classes = array_map( 'trim', explode( "\n", get_option( 'woocommerce_tax_classes' ) ) );

	if ( $classes ) {
		foreach ( $classes as $class ) {
			if ( empty( $class ) ) {
				continue;
			}
			WC_Tax::create_tax_class( $class );
		}
	}
	delete_option( 'woocommerce_tax_classes' );
}