WC_Shipping_Legacy_Local_Pickup::init()
Init function.
Метод класса: WC_Shipping_Legacy_Local_Pickup{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Shipping_Legacy_Local_Pickup = new WC_Shipping_Legacy_Local_Pickup(); $WC_Shipping_Legacy_Local_Pickup->init();
Код WC_Shipping_Legacy_Local_Pickup::init() WC Shipping Legacy Local Pickup::init WC 9.5.1
public function init() { // Load the settings. $this->init_form_fields(); $this->init_settings(); // Define user set variables. $this->enabled = $this->get_option( 'enabled' ); $this->title = $this->get_option( 'title' ); $this->codes = $this->get_option( 'codes' ); $this->availability = $this->get_option( 'availability' ); $this->countries = $this->get_option( 'countries' ); // Actions. add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) ); }