WC_Shipping_Local_Pickup::init()
Initialize local pickup.
Метод класса: WC_Shipping_Local_Pickup{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Shipping_Local_Pickup = new WC_Shipping_Local_Pickup(); $WC_Shipping_Local_Pickup->init();
Код WC_Shipping_Local_Pickup::init() WC Shipping Local Pickup::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->tax_status = $this->get_option( 'tax_status' ); $this->cost = $this->get_option( 'cost' ); // Actions. add_action( 'woocommerce_update_options_shipping_' . $this->id, array( $this, 'process_admin_options' ) ); }