Automattic\WooCommerce\Blocks\Shipping
PickupLocation::init()
Init function.
Метод класса: PickupLocation{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$PickupLocation = new PickupLocation(); $PickupLocation->init();
Код PickupLocation::init() PickupLocation::init WC 9.3.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 ); }