Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     if (isset($_REQUEST['shipping_module_id'])) {
         update_user_option(get_current_user_id(), 'wpmlm_settings_selected_shipping_module', $_REQUEST['shipping_module_id']);
     }
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $file = get_transient('wpmlm_settings_tab_import_file');
     if ($file) {
         $this->file = $file;
     }
     $this->step = empty($_REQUEST['step']) ? 1 : (int) $_REQUEST['step'];
     if ($this->step < 1 || $this->step > 3) {
         $this->step = 1;
     }
     switch ($this->step) {
         case 2:
             $this->prepare_import_columns();
             break;
         case 3:
             $this->import_data();
             break;
     }
     $this->hide_submit_button();
 }