WordPress at Your Fingertips
function is not described

WC_Shipping::__get() public WC 1.0

Magic getter.

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

No Hooks.

Return

Mixed.

Usage

$WC_Shipping = new WC_Shipping();
$WC_Shipping->__get( $name );
$name(string) (required)
Property name.

Code of WC_Shipping::__get() WC 5.9.0

public function __get( $name ) {
	// Grab from cart for backwards compatibility with versions prior to 3.2.
	if ( 'shipping_total' === $name ) {
		return WC()->cart->get_shipping_total();
	}
	if ( 'shipping_taxes' === $name ) {
		return WC()->cart->get_shipping_taxes();
	}
}