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