WordPress at Your Fingertips
function is not described

WC_Shipping::__construct() public WC 1.0

Initialize shipping.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shipping::__construct() WC 5.9.0

public function __construct() {
	$this->enabled = wc_shipping_enabled();

	if ( $this->enabled ) {
		$this->init();
	}
}