WordPress at Your Fingertips
function is not described

WC_Shipping::get_shipping_classes() public WC 1.0

Get an array of shipping classes.

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

Hooks from the method

Return

Array.

Usage

$WC_Shipping = new WC_Shipping();
$WC_Shipping->get_shipping_classes();

Code of WC_Shipping::get_shipping_classes() WC 5.9.0

public function get_shipping_classes() {
	if ( empty( $this->shipping_classes ) ) {
		$classes                = get_terms(
			'product_shipping_class',
			array(
				'hide_empty' => '0',
				'orderby'    => 'name',
			)
		);
		$this->shipping_classes = ! is_wp_error( $classes ) ? $classes : array();
	}
	return apply_filters( 'woocommerce_get_shipping_classes', $this->shipping_classes );
}