woocommerce_get_shipping_classes

woocommerce_get_shipping_classes

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_get_shipping_classes') is found 1 times:

  • /includes/class-wc-shipping.php line 242
    				)
    			);
    			$this->shipping_classes = ! is_wp_error( $classes ) ? $classes : array();
    		}
    		return apply_filters( 'woocommerce_get_shipping_classes', $this->shipping_classes );
    	}
    
    	/**
    	 * Calculate shipping for (multiple) packages of cart items.
    	 *
    	 * @param array $packages multi-dimensional array of cart items to calc shipping for.