plugin = $plugin; $this->name = $plugin_name; $this->plugin_text_domain = $text_domain; if ($this->isPluginPage() || !$this->isDevelopmentSite()) { add_action('admin_print_scripts', array($this, 'js'), 20); add_action('admin_print_scripts', array($this, 'css')); add_action('admin_footer', array($this, 'modal')); } return NULL; } /** * Print the required js */ function js() { $display_name = ''; if (is_user_logged_in()) { if (function_exists('wp_get_current_user')) { $user = wp_get_current_user(); } elseif (function_exists('get_currentuserinfo')) { $user = get_currentuserinfo(); } if (!empty($user)) { $display_name = isset($user->display_name) ? $user->display_name : ''; } } ?> array( 'title' => esc_html__('Upgrading to PRO.', $this->plugin_text_domain), 'reason' => 'Upgrading to PRO.' ), 2 => array( 'title' => esc_html__('I am switching to a different discount plugin.', $this->plugin_text_domain), 'reason' => 'I am switching to a different discount plugin.' ), 3 => array( 'title' => esc_html__('I could not get my discount rule to work.', $this->plugin_text_domain), 'reason' => 'I could not get my discount rule to work.' ), 4 => array( 'title' => esc_html__('It does not meet my discount requirements.', $this->plugin_text_domain), 'reason' => 'It does not meet my discount requirements.' ), 5 => array( 'title' => esc_html__('Plugin is complex.', $this->plugin_text_domain), 'reason' => 'Plugin is complex.' ), 6 => array( 'title' => esc_html__('I\'m trying to troubleshoot the plugin.', $this->plugin_text_domain), 'reason' => 'I\'m trying to troubleshoot the plugin.' ), 7 => array( 'title' => esc_html__('I was instructed to deactivate by Flycart Support.', $this->plugin_text_domain), 'reason' => 'I was instructed to deactivate by Flycart Support.' ), 8 => array( 'title' => esc_html__('I no longer use this plugin.', $this->plugin_text_domain), 'reason' => 'I no longer use this plugin.' ), 9 => array( 'title' => esc_html__('It\'s a temporary deactivation.', $this->plugin_text_domain), 'reason' => 'It\'s a temporary deactivation.' ), 10 => array( 'title' => esc_html__('Other', $this->plugin_text_domain), 'reason' => 'Other', 'details' => esc_html__('Please share the reason', $this->plugin_text_domain), ), ); ?>