PluginProbe
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent / 3.5.4
SupportCandy – AI Customer Support Ticket System & Live Chatbot Agent v3.5.4
3.5.4 3.5.3 3.5.2 3.5.1 3.4.9 3.5.0 3.4.8 3.4.7 trunk 2.3.1 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6
← All changes | supportcandy.php +35 -16 3.3.8 → 3.5.4 View file →
@@ -2,14 +2,14 @@
2 2 /**
3 3 * Plugin Name: SupportCandy
4 4 * Plugin URI: https://supportcandy.net/
5 5 * Description: Easy & Powerful support ticket system for WordPress
6 - * Version: 3.3.8
6 + * Version: 3.5.4
7 7 * Author: SupportCandy
8 8 * Author URI: https://wordpress.org/plugins/supportcandy/
9 9 * Requires at least: 5.6
10 10 * Requires PHP: 7.4
11 - * Tested up to: 6.8
11 + * Tested up to: 7.1
12 12 * Text Domain: supportcandy
13 13 * Domain Path: /i18n
14 14 * License: GPLv3 or later
15 15 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -31,9 +31,9 @@
31 31 * Plugin version
32 32 *
33 33 * @var string
34 34 */
35 - public static $version = '3.3.8';
35 + public static $version = '3.5.4';
36 36
37 37 /**
38 38 * Database version
39 39 *
@@ -46,9 +46,8 @@
46 46 */
47 47 public static function init() {
48 48
49 49 self::define_constants();
50 - add_action( 'init', array( __CLASS__, 'load_textdomain' ), 1 );
51 50 self::load_files();
52 51 }
53 52
54 53 /**
@@ -67,20 +66,8 @@
67 66 self::define( 'WPSC_DB_VERSION', self::$db_version );
68 67 }
69 68
70 69 /**
71 - * Loads internationalization strings
72 - *
73 - * @return void
74 - */
75 - public static function load_textdomain() {
76 -
77 - $locale = apply_filters( 'plugin_locale', get_locale(), 'supportcandy' );
78 - load_textdomain( 'supportcandy', WP_LANG_DIR . '/supportcandy/supportcandy-' . $locale . '.mo' );
79 - load_plugin_textdomain( 'supportcandy', false, plugin_basename( __DIR__ ) . '/i18n' );
80 - }
81 -
82 - /**
83 70 * Load all classes
84 71 *
85 72 * @return void
86 73 */
@@ -154,8 +141,11 @@
154 141 // Load classes that is related to frontend section.
155 142 foreach ( glob( WPSC_ABSPATH . 'includes/frontend/*.php' ) as $filename ) {
156 143 include_once $filename;
157 144 }
145 +
146 + // load deactivation feedback class.
147 + self::init_deactivation_feedback();
158 148 }
159 149
160 150 /**
161 151 * Define constants
@@ -168,8 +158,37 @@
168 158
169 159 if ( ! defined( $name ) ) {
170 160 define( $name, $value );
171 161 }
162 + }
163 +
164 +
165 +
166 + /**
167 + * Initialize deactivation feedback system.
168 + *
169 + * @return void
170 + */
171 + public static function init_deactivation_feedback() {
172 + require_once WPSC_ABSPATH . 'deactivation-feedback/class-psm-dfr.php';
173 + PSM_DFR::init(
174 + array(
175 + 'plugin_file' => plugin_basename( __FILE__ ),
176 + 'plugin_name' => 'SupportCandy',
177 + 'plugin_version' => WPSC_VERSION,
178 + 'endpoint' => 'https://feedback.psmplugins.com/wp-json/psm/v1/feedback',
179 + 'api_key' => 'b8p-MO>d}!aq<bY6nx]mRG~&ndXO=3jwIi{iX<YAt2#Z!>n-[.Q9](OZ--}#@C|',
180 + 'reasons' => array(
181 + 'too_complex' => 'Too complicated to set up',
182 + 'testing' => 'Just testing / comparing plugins',
183 + 'found_alternative' => 'Found a better plugin',
184 + 'missing_features' => 'Missing a feature I need',
185 + 'bugs_errors' => 'Bugs or errors',
186 + 'temporary' => 'Temporary deactivation',
187 + 'other' => 'Other',
188 + ),
189 + )
190 + );
172 191 }
173 192 }
174 193 endif;
175 194