@@ 46-60 (lines=15) @@ | ||
43 | * |
|
44 | * @access private |
|
45 | */ |
|
46 | public function __construct() { |
|
47 | $this->set_variables(); |
|
48 | ||
49 | add_action( 'lsx_tour_importer_admin_tab_'.$this->tab_slug, array($this,'display_page') ); |
|
50 | add_action('wp_ajax_lsx_tour_importer',array($this,'process_ajax_search')); |
|
51 | add_action('wp_ajax_nopriv_lsx_tour_importer',array($this,'process_ajax_search')); |
|
52 | ||
53 | add_action('wp_ajax_lsx_import_items',array($this,'process_ajax_import')); |
|
54 | add_action('wp_ajax_nopriv_lsx_import_items',array($this,'process_ajax_import')); |
|
55 | ||
56 | $temp_options = get_option('_lsx-to_settings',false); |
|
57 | if(false !== $temp_options && isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug])){ |
|
58 | $this->options = $temp_options[$this->plugin_slug]; |
|
59 | } |
|
60 | } |
|
61 | ||
62 | /** |
|
63 | * Sets the variables used throughout the plugin. |
@@ 46-61 (lines=16) @@ | ||
43 | * |
|
44 | * @access private |
|
45 | */ |
|
46 | public function __construct() { |
|
47 | $this->set_variables(); |
|
48 | ||
49 | add_action( 'lsx_tour_importer_admin_tab_'.$this->tab_slug, array($this,'display_page') ); |
|
50 | ||
51 | add_action('wp_ajax_lsx_tour_importer',array($this,'process_ajax_search')); |
|
52 | add_action('wp_ajax_nopriv_lsx_tour_importer',array($this,'process_ajax_search')); |
|
53 | ||
54 | add_action('wp_ajax_lsx_import_items',array($this,'process_ajax_import')); |
|
55 | add_action('wp_ajax_nopriv_lsx_import_items',array($this,'process_ajax_import')); |
|
56 | ||
57 | $temp_options = get_option('_lsx-to_settings',false); |
|
58 | if(false !== $temp_options && isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug])){ |
|
59 | $this->options = $temp_options[$this->plugin_slug]; |
|
60 | } |
|
61 | } |
|
62 | ||
63 | /** |
|
64 | * Sets the variables used throughout the plugin. |
@@ 64-78 (lines=15) @@ | ||
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 | add_action('wp_ajax_lsx_tour_importer',array($this,'process_ajax_search')); |
|
69 | add_action('wp_ajax_nopriv_lsx_tour_importer',array($this,'process_ajax_search')); |
|
70 | ||
71 | add_action('wp_ajax_lsx_import_items',array($this,'process_ajax_import')); |
|
72 | add_action('wp_ajax_nopriv_lsx_import_items',array($this,'process_ajax_import')); |
|
73 | ||
74 | $temp_options = get_option('_lsx-to_settings',false); |
|
75 | if(false !== $temp_options && isset($temp_options[$this->plugin_slug]) && !empty($temp_options[$this->plugin_slug])){ |
|
76 | $this->options = $temp_options[$this->plugin_slug]; |
|
77 | } |
|
78 | } |
|
79 | ||
80 | /** |
|
81 | * Sets the variables used throughout the plugin. |