@@ 64-84 (lines=21) @@ | ||
61 | * |
|
62 | * @access private |
|
63 | */ |
|
64 | public function __construct() { |
|
65 | $this->set_variables(); |
|
66 | ||
67 | add_action( 'lsx_tour_importer_admin_tab_'.$this->tab_slug, array($this,'display_page') ); |
|
68 | ||
69 | add_action('wp_ajax_lsx_tour_importer',array($this,'process_ajax_search')); |
|
70 | add_action('wp_ajax_nopriv_lsx_tour_importer',array($this,'process_ajax_search')); |
|
71 | ||
72 | add_action('wp_ajax_lsx_import_items',array($this,'process_ajax_import')); |
|
73 | add_action('wp_ajax_nopriv_lsx_import_items',array($this,'process_ajax_import')); |
|
74 | ||
75 | $temp_options = get_option('_lsx-to_settings',false); |
|
76 | if(false !== $temp_options && isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug])){ |
|
77 | $this->options = $temp_options[$this->plugin_slug]; |
|
78 | } |
|
79 | ||
80 | $destination_options = get_option('wetu_importer_destination_settings',false); |
|
81 | if(false !== $destination_options){ |
|
82 | $this->destination_options = $destination_options; |
|
83 | } |
|
84 | } |
|
85 | ||
86 | /** |
|
87 | * Sets the variables used throughout the plugin. |
@@ 82-101 (lines=20) @@ | ||
79 | * |
|
80 | * @access private |
|
81 | */ |
|
82 | public function __construct() { |
|
83 | $this->set_variables(); |
|
84 | ||
85 | add_action( 'lsx_tour_importer_admin_tab_'.$this->tab_slug, array($this,'display_page') ); |
|
86 | add_action('wp_ajax_lsx_tour_importer',array($this,'process_ajax_search')); |
|
87 | add_action('wp_ajax_nopriv_lsx_tour_importer',array($this,'process_ajax_search')); |
|
88 | ||
89 | add_action('wp_ajax_lsx_import_items',array($this,'process_ajax_import')); |
|
90 | add_action('wp_ajax_nopriv_lsx_import_items',array($this,'process_ajax_import')); |
|
91 | ||
92 | $temp_options = get_option('_lsx-to_settings',false); |
|
93 | if(false !== $temp_options && isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug])){ |
|
94 | $this->options = $temp_options[$this->plugin_slug]; |
|
95 | } |
|
96 | ||
97 | $tour_options = get_option('wetu_importer_tour_settings',false); |
|
98 | if(false !== $tour_options){ |
|
99 | $this->tour_options = $tour_options; |
|
100 | } |
|
101 | } |
|
102 | ||
103 | /** |
|
104 | * Sets the variables used throughout the plugin. |