-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate-licenses.php
123 lines (74 loc) · 1.94 KB
/
activate-licenses.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
use Breakdance\Licensing\LicenseKeyManager;
/**
* Activate EWWWIO
*
*/
if ( defined( 'EWWWIO_KEY' ) ) {
update_option( 'ewww_image_optimizer_cloud_key', EWWWIO_KEY );
}
/**
* Activate Breakdance
*
*/
if ( defined( 'BREAKDANCE_KEY' ) ) {
$license_key_manager = LicenseKeyManager::getInstance();
$license_key_manager->refetchStoredLicenseKeyValidityInfo();
$license_key_manager->changeLicenseKey( BREAKDANCE_KEY );
}
/**
* Activate Breakdance AI
*
*/
if ( defined( 'BREAKDANCE_AI_KEY') ) {
Breakdance\AI\setLicenseKey(BREAKDANCE_AI_KEY );
}
/**
* Set BD Keys
*
*/
if ( defined( 'GOOGLE_MAPS_KEY' ) ) {
Breakdance\APIKeys\setKey( BREAKDANCE_GOOGLE_MAPS_API_KEY_NAME, GOOGLE_MAPS_KEY );
}
if ( defined( 'OPEN_AI_KEY' ) ) {
Breakdance\APIKeys\setKey( 'openai', OPEN_AI_KEY );
}
/**
* Activate AnalyicsWP
*/
if ( defined( 'ANALYTICSWP_KEY') ) {
AnalyticsWP\Lib\WooSoftwareLicense\WOO_SLT_Options_Interface::handle_activating_license( ANALYTICSWP_KEY );
}
/**
* Default Settings for WPSES
*
*/
$ses_settings = [
'send-via-ses' => true,
'default-email' => sanitize_email( get_bloginfo( 'name' ). '[email protected]' ),
'default-email-name' => get_bloginfo( 'name' ) . ' Website',
'completed-setup' => true
];
update_option( 'wposes_settings', $ses_settings );
/**
* Default Settings for Breakdance
*
*/
$bloat_eliminator_settings = [
'gutenberg-blocks-css',
'rsd-links',
'wlw-link',
'rest-api',
'shortlink',
'rel-links',
'wp-generator',
'feed-links',
'xml-rpc',
'wp-emoji',
'wp-oembed',
'wp-dashicons',
];
Breakdance\Data\set_global_option('breakdance_settings_bloat_eliminator', $bloat_eliminator_settings );
Breakdance\Data\set_global_option('is_theme_disabled', 'yes');
Breakdance\Data\set_global_option('breakdance_settings_disable_view_tracking_cookies', 'yes');
echo "\nCompleted activations\n";