ACF.php
2 weeks ago
AdvancedMathCaptcha.php
1 month ago
AeliaCurrencySwitcher.php
11 months ago
BeaverBuilder.php
1 year ago
CF_Helper.php
5 months ago
CURCY_MultiCurrency.php
1 year ago
Cloudflare.php
5 months ago
CommonHelpers.php
1 year ago
CookieNotice.php
1 year ago
DownloadManager.php
1 year ago
Elementor.php
5 months ago
Ezoic.php
1 year ago
FusionBuilder.php
1 year ago
GeoTargetingWP.php
1 year ago
GravityForms.php
1 month ago
JetPackNP.php
1 year ago
MPG.php
11 months ago
NginxHelper.php
1 year ago
RC.php
11 months ago
RankMathNP.php
1 year ago
ShortPixel.php
1 year ago
SquirrlySEO.php
1 year ago
TheEventsCalendar.php
1 month ago
ThriveTheme.php
1 year ago
WCML.php
1 year ago
WPBakeryNP.php
1 year ago
WPCacheHelper.php
1 year ago
WPForms.php
1 year ago
WPML.php
2 weeks ago
WPRocket.php
1 year ago
WooCommerce.php
2 weeks ago
WoocommerceCacheHandler.php
1 year ago
YoastSEO.php
1 year ago
ThriveTheme.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace NitroPack\Integration\Plugin; |
| 4 | |
| 5 | class ThriveTheme { |
| 6 | const STAGE = "very_early"; |
| 7 | |
| 8 | public static function isActive() { |
| 9 | return get_current_theme() == "Thrive Theme Builder"; |
| 10 | } |
| 11 | |
| 12 | public function init($stage) { |
| 13 | add_filter('tve_dash_is_crawler_override', function($current_value) { |
| 14 | if (strpos($_SERVER['HTTP_USER_AGENT'], 'Nitro-Optimizer-Agent') !== false) { |
| 15 | return false; |
| 16 | } |
| 17 | return $current_value; |
| 18 | }); |
| 19 | return NULL; |
| 20 | } |
| 21 | } |