'used-it', 'text' => __('Used it successfully. Don\'t need anymore.', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'reviewhtml', 'placeholder' => __('Have used it successfully and aint in need of it anymore', 'users-customers-import-export-for-wp-woocommerce') ), array( 'id' => 'temporary-deactivation', 'text' => __('Temporary deactivation', 'users-customers-import-export-for-wp-woocommerce'), 'type' => '', 'placeholder' => __('Temporary de-activation. Will re-activate later.', 'users-customers-import-export-for-wp-woocommerce') ), array( 'id' => 'could-not-understand', 'text' => __('I couldn\'t understand how to make it work', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'supportlink', 'placeholder' => __('Would you like us to assist you?', 'users-customers-import-export-for-wp-woocommerce') ), array( 'id' => 'found-better-plugin', 'text' => __('I found a better plugin', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'text', 'placeholder' => __('Which plugin?', 'users-customers-import-export-for-wp-woocommerce') ), array( 'id' => 'not-have-that-feature', 'text' => __('The plugin is great, but I need specific feature that you don\'t support', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'textarea', 'placeholder' => __('Could you tell us more about that feature?', 'users-customers-import-export-for-wp-woocommerce') ), array( 'id' => 'is-not-working', 'text' => __('The plugin is not working', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'textarea', 'placeholder' => __('Could you tell us a bit more whats not working?', 'users-customers-import-export-for-wp-woocommerce') ), array( 'id' => 'looking-for-other', 'text' => __('It\'s not what I was looking for', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'textarea', 'placeholder' => 'Could you tell us a bit more?' ), array( 'id' => 'did-not-work-as-expected', 'text' => __('The plugin didn\'t work as expected', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'textarea', 'placeholder' => __('What did you expect?', 'users-customers-import-export-for-wp-woocommerce') ), array( 'id' => 'other', 'text' => __('Other', 'users-customers-import-export-for-wp-woocommerce'), 'type' => 'textarea', 'placeholder' => __('Could you tell us a bit more?', 'users-customers-import-export-for-wp-woocommerce') ), ); return $reasons; } public function deactivate_scripts() { global $pagenow; if ('plugins.php' != $pagenow) { return; } $reasons = $this->get_uninstall_reasons(); ?>




sanitize_text_field(wp_unslash($_POST['reason_id'])), 'plugin' => "userimport", 'auth' => 'userimport_uninstall_1234#', 'date' => gmdate("M d, Y h:i:s A"), 'url' => '', 'user_email' => isset($_POST['user_email']) ? sanitize_email(wp_unslash($_POST['user_email'])) : '', 'reason_info' => isset($_REQUEST['reason_info']) ? sanitize_text_field(wp_unslash($_REQUEST['reason_info'])) : '', 'software' => isset($_SERVER['SERVER_SOFTWARE']) ? sanitize_text_field(wp_unslash($_SERVER['SERVER_SOFTWARE'])) : '', 'php_version' => phpversion(), 'mysql_version' => $wpdb->db_version(), 'wp_version' => get_bloginfo('version'), 'wc_version' => (!defined('WC_VERSION')) ? '' : WC_VERSION, 'locale' => get_locale(), 'languages' => implode( ",", get_available_languages() ), 'theme' => wp_get_theme()->get('Name'), 'multisite' => is_multisite() ? 'Yes' : 'No', 'userimport_version' => WT_U_IEW_VERSION, ); // Write an action/hook here in webtoffe to recieve the data $resp = wp_remote_post('https://feedback.webtoffee.com/wp-json/userimport/v1/uninstall', array( 'method' => 'POST', 'timeout' => 45, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => false, 'body' => $data, 'cookies' => array() ) ); wp_send_json_success(); } } new WT_UserImport_Uninstall_Feedback(); endif;