PluginProbe
WP Synchro – The Ultimate WordPress Migration Tool / trunk
WP Synchro – The Ultimate WordPress Migration Tool vtrunk
1.16.1 1.16.0 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.1.0 1.10.0 1.11.0 1.11.1 1.11.2 1.11.3 1.11.4 1.11.5 1.12.0 1.13.0 1.14.0 1.15.0 1.2.0 1.3.0 1.3.1 1.3.2 All 45 releases
wpsynchro / src / Utilities / JSData / DeactivatePluginData.php

DeactivatePluginData.php in WP Synchro – The Ultimate WordPress Migration Tool trunk, at src/Utilities/JSData/DeactivatePluginData.php

31 lines 866 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Class for providing data for deactivate modal
5 */
6
7 namespace WPSynchro\Utilities\JSData;
8
9 use WPSynchro\Utilities\CommonFunctions;
10
11 class DeactivatePluginData
12 {
13 /**
14 * Load the JS data for page headers
15 */
16 public function load()
17 {
18 global $wp_version;
19 $jsdata = [
20 'wp_version' => $wp_version,
21 'wp_synchro_version' => WPSYNCHRO_VERSION,
22 'wp_synchro_version_type' => CommonFunctions::isPremiumVersion() ? 'PRO' : 'FREE',
23 'wp_language' => get_bloginfo("language"),
24 'get_questions_url' => 'https://daev.tech/api/wpsynchro/v1/deactivate-feedback-questions',
25 'post_feedback_url' => 'https://daev.tech/api/wpsynchro/v1/deactivate-feedback',
26 ];
27
28 wp_localize_script('wpsynchro_deactivate_js', 'wpsynchro_deactivation', $jsdata);
29 }
30 }
31