WordPress at Your Fingertips
function is not described

WC_Shipping_Free_Shipping::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shipping_Free_Shipping::__construct() WC 5.9.0

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();
}