| @@ -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.4.5 | |
| 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.9 | |
| 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.4.5'; | |
| 35 | + public static $version = '3.5.4'; | |
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Database version |
| 39 | 39 | * |
| @@ -141,8 +141,11 @@ | ||
| 141 | 141 | // Load classes that is related to frontend section. |
| 142 | 142 | foreach ( glob( WPSC_ABSPATH . 'includes/frontend/*.php' ) as $filename ) { |
| 143 | 143 | include_once $filename; |
| 144 | 144 | } |
| 145 | + | |
| 146 | + // load deactivation feedback class. | |
| 147 | + self::init_deactivation_feedback(); | |
| 145 | 148 | } |
| 146 | 149 | |
| 147 | 150 | /** |
| 148 | 151 | * Define constants |
| @@ -155,8 +158,37 @@ | ||
| 155 | 158 | |
| 156 | 159 | if ( ! defined( $name ) ) { |
| 157 | 160 | define( $name, $value ); |
| 158 | 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 | + ); | |
| 159 | 191 | } |
| 160 | 192 | } |
| 161 | 193 | endif; |
| 162 | 194 | |