'Quick Feedback', 'foreword' => 'If you would be kind enough, please tell us why you\'re deactivating?', 'better_plugins_name' => 'Please tell us which plugin?', 'please_tell_us' => 'Please tell us the reason so we can improve the plugin', 'do_not_attach_email' => 'Do not send my e-mail address with this feedback', 'brief_description' => 'Please give us any feedback that could help us improve', 'cancel' => 'Cancel', 'skip_and_deactivate' => 'Skip & Deactivate', 'submit_and_deactivate' => 'Submit & Deactivate', 'please_wait' => 'Please wait', 'get_support' => 'Get Support', 'documentation' => 'Documentation', 'thank_you' => 'Thank you!', )); // Plugins $plugins = apply_filters('ayecode_deactivation_survey_plugins', self::$plugins); // Reasons $defaultReasons = array( 'suddenly-stopped-working' => 'The plugin suddenly stopped working', 'plugin-broke-site' => 'The plugin broke my site', 'plugin-setup-difficult' => 'Too difficult to setup', 'plugin-design-difficult' => 'Too difficult to get the design i want', 'no-longer-needed' => 'I don\'t need this plugin any more', 'found-better-plugin' => 'I found a better plugin', 'temporary-deactivation' => 'It\'s a temporary deactivation, I\'m troubleshooting', 'other' => 'Other', ); foreach($plugins as $plugin) { $plugin->reasons = apply_filters('ayecode_deactivation_survey_reasons', $defaultReasons, $plugin); $plugin->url = home_url(); $plugin->activated = 0; } // Send plugin data wp_localize_script('ayecode-deactivation-survey', 'ayecodeds_deactivate_feedback_form_plugins', $plugins); } } }