WC_Shipping_Free_Shipping::__construct( int $instance_id )

Constructor.


Description Description


Parameters Parameters

$instance_id

(Required) Shipping method instance.


Top ↑

Source Source

File: includes/shipping/free-shipping/class-wc-shipping-free-shipping.php

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


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.