WordPress at Your Fingertips
function is not described

WC_Shipping_Method::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Shipping_Method = new WC_Shipping_Method();
$WC_Shipping_Method->__construct( $instance_id );
$instance_id(int)
Instance ID.

Code of WC_Shipping_Method::__construct() WC 5.8.0

public function __construct( $instance_id = 0 ) {
	$this->instance_id = absint( $instance_id );
}