-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathconfig.php
133 lines (101 loc) · 4.78 KB
/
config.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
124
125
126
127
128
129
130
131
132
133
<?php
return [
/**
* Boot check PHP configuration
*/
'boot-check-php' => [
/**
* Enables the PHP validation
*/
'enabled' => true,
/**
* PHP minimum version
* Uses version_compare function: http://php.net/manual/en/function.version-compare.php
*/
'version-required' => '5.6.0',
/**
* Aborts the plugin activation on WP sandbox generating an error output message
*/
'prevent-activation' => false,
/**
* PHP error message
*
* Used to trigger a user error: It is limited to 1024 bytes in length. Any additional characters beyond 1024 bytes will be truncated
* (from PHP documentation: http://php.net/manual/en/function.trigger-error.php)
*
* Supported variables: %php_current_version% and %php_version_required%
*/
'version-message' => '<strong>%plugin%</strong> does not support your outdated PHP version (%php_current_version%). Please update your PHP to at least version 7.0 or consider <a href="https://www.littlebizzy.com/hosting?utm_source=phpcheck" target="_blank">better web hosting</a>.',
], // End of boot check PHP
/**
* Admin notices configuration
*/
'admin-notices' => [
/**
* Enables the Admin Notices execution
*/
'enabled' => false,
/**
* Rate Us
* The %plugin% mark reflects the plugin name
*/
'days_before_display_rate_us' => 2, // 2 days delay
'days_dismissing_rate_us' => 180, // 6 months reappear
'rate_us_url' => 'https://wordpress.org/support/plugin/[plugin-slug]-littlebizzy/reviews/?rate=5#new-post',
'rate_us_url2' => 'https://www.facebook.com/groups/littlebizzy/',
'rate_us_url3' => 'https://www.littlebizzy.com/services/speed-boost?utm_source=wpnotice',
'rate_us_url4' => 'https://codex.wordpress.org/Plugin_API/Action_Reference/admin_notices#Disable_Nag_Notices',
'rate_us_message' => 'Thanks for using <strong>%plugin%</strong>. Please support our free work by rating this plugin with 5 stars on <a href="%url%" target="_blank">WordPress.org</a>.<br><br>You may also join our free <a href="%url2%" target="_blank">Facebook group</a> to post any questions or comments!<br><br>P.S. Use coupon code <code>SPEED20</code> to get $20 off our popular <a href="%url3%" target="_blank">Speed Boost</a> service at LittleBizzy.com.<br><br><small><em><a href="%url4%" target="_blank">Hide these notices</a></em></small>',
/**
* Plugin suggestions
* The %plugin% mark reflects the plugin name
*/
'days_dismissing_suggestions' => 180, // 6 months reappear
'suggestions_message' => '%plugin% recommends the following free plugins:',
'suggestions' => [
'disable-wc-status-littlebizzy' => [
'name' => 'Disable WooCommerce Status',
'desc' => 'Completely disables the WooCommerce Status widget in the WP Admin dashboard to greatly improve backend performance on high traffic WooCommerce shops.',
'filename' => 'disable-woocommerce-status.php',
],
'disable-wc-styles-littlebizzy' => [
'name' => 'Disable WooCommerce Styles',
'desc' => 'Completely disables all of the CSS stylesheets that are loaded by WooCommerce in order that styling can be better managed by a single style.css file.',
'filename' => 'disable-woocommerce-styles.php',
],
'delete-expired-transients-littlebizzy' => [
'name' => 'Delete Expired Transients',
'desc' => 'Deletes all expired transients upon activation and on a daily basis thereafter via WP Cron to maintain a cleaner database and improve performance.',
'filename' => 'delete-expired-transients.php',
],
'disable-jq-migrate-littlebizzy' => [
'name' => 'Disable jQuery Migrate',
'desc' => 'Easily prevent the jQuery migrate script that is included with WordPress core from being loaded to slim down source code (for advanced users only).',
'filename' => 'disable-jquery-migrate.php',
],
'remove-query-strings-littlebizzy' => [
'name' => 'Remove Query Strings',
'desc' => 'Removes all query strings from static resources meaning that proxy servers and beyond can better cache your site content (plus, better SEO scores).',
'filename' => 'remove-query-strings.php',
],
], // End of suggestions
], // End of admin-notices
/**
* Admin Notices configuration for WordPress MultiSite
*/
'admin-notices-ms' => [
/**
* Enables the Admin Notices execution
*/
'enabled' => true,
/**
* Disables plugin execution on detected multisited installs
*/
'abort-on-multisite' => false,
/**
* Custom message
* The %plugin% mark reflects the plugin name
*/
'message' => 'For performance reasons, <strong>%plugin%</strong> does not support Multisite. For best results, always place your WordPress website on a <a href="https://www.littlebizzy.com/hosting?utm_source=multisite" target="_blank">dedicated Nginx server</a>.',
], // End of admin-notices-ms
]; // End of main array