$shipping_classes = get_terms( array('taxonomy' => 'product_shipping_class', 'hide_empty' => false ) );
# WOOCOMMERCE SHIPPING METHOD
function name_1() {
// Add a new class here
}
add_action( 'woocommerce_shipping_init', 'name_1' );
Check on source site for more update and method