WC_Shipping_Local_Pickup::__construct()
Constructor.
Method of the class: WC_Shipping_Local_Pickup{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Shipping_Local_Pickup = new WC_Shipping_Local_Pickup(); $WC_Shipping_Local_Pickup->__construct( $instance_id );
- $instance_id(int)
- Instance ID.
WC_Shipping_Local_Pickup::__construct() WC Shipping Local Pickup:: construct code WC 9.7.1
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(); }