WordPress at Your Fingertips
function is not described

WC_Shipping_Local_Pickup::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Shipping_Local_Pickup::__construct() WC 5.9.0

public function __construct( $instance_id = 0 ) {
	$this->id                 = 'local_pickup';
	$this->instance_id        = absint( $instance_id );
	$this->method_title       = __( 'Local pickup', 'woocommerce' );
	$this->method_description = __( 'Allow customers to pick up orders themselves. By default, when using local pickup store base taxes will apply regardless of customer address.', 'woocommerce' );
	$this->supports           = array(
		'shipping-zones',
		'instance-settings',
		'instance-settings-modal',
	);
	$this->init();
}