WC_Shipping_Free_Shipping::__construct()publicWC 1.0

Constructor.

Method of the class: WC_Shipping_Free_Shipping{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Shipping_Free_Shipping = new WC_Shipping_Free_Shipping();
$WC_Shipping_Free_Shipping->__construct( $instance_id );
$instance_id(int)
Shipping method instance.

WC_Shipping_Free_Shipping::__construct() code WC 9.4.2

public function __construct( $instance_id = 0 ) {
	$this->id                 = 'free_shipping';
	$this->instance_id        = absint( $instance_id );
	$this->method_title       = __( 'Free shipping', 'woocommerce' );
	$this->method_description = __( 'Free shipping is a special method which can be triggered with coupons and minimum spends.', 'woocommerce' );
	$this->supports           = array(
		'shipping-zones',
		'instance-settings',
		'instance-settings-modal',
	);

	$this->init();
}