Automattic\WooCommerce\Blocks\Shipping
PickupLocation::init()
Init function.
Method of the class: PickupLocation{}
No Hooks.
Return
null
. Nothing (null).
Usage
$PickupLocation = new PickupLocation(); $PickupLocation->init();
PickupLocation::init() PickupLocation::init code WC 9.8.1
public function init() { $this->enabled = $this->get_option( 'enabled' ); $this->title = $this->get_option( 'title' ); $this->tax_status = $this->get_option( 'tax_status' ); $this->cost = $this->get_option( 'cost' ); $this->supports = [ 'settings', 'local-pickup' ]; $this->pickup_locations = get_option( $this->id . '_pickup_locations', [] ); add_filter( 'woocommerce_attribute_label', array( $this, 'translate_meta_data' ), 10, 3 ); }