AdvancedMathCaptcha.php
3 years ago
AeliaCurrencySwitcher.php
3 years ago
BeaverBuilder.php
4 years ago
CF_Helper.php
3 years ago
Cloudflare.php
2 years ago
CommonHelpers.php
3 years ago
CookieNotice.php
4 years ago
DownloadManager.php
4 years ago
Elementor.php
3 years ago
Ezoic.php
4 years ago
FusionBuilder.php
4 years ago
GeoTargetingWP.php
2 years ago
GravityForms.php
2 years ago
JetPackNP.php
3 years ago
NginxHelper.php
2 years ago
RC.php
3 years ago
RankMathNP.php
3 years ago
ShortPixel.php
4 years ago
SquirrlySEO.php
3 years ago
TheEventsCalendar.php
3 years ago
ThriveTheme.php
4 years ago
WCML.php
3 years ago
WPBakeryNP.php
3 years ago
WPCacheHelper.php
3 years ago
WPForms.php
3 years ago
WPRocket.php
4 years ago
Woocommerce.php
4 years ago
WoocommerceCacheHandler.php
4 years ago
YoastSEO.php
3 years ago
JetPackNP.php
27 lines
| 1 | <?php |
| 2 | |
| 3 | namespace NitroPack\Integration\Plugin; |
| 4 | |
| 5 | use Jetpack; |
| 6 | |
| 7 | class JetPackNP { |
| 8 | use CommonHelpers; |
| 9 | const STAGE = "late"; |
| 10 | public static function isActive() { |
| 11 | $activePlugins = apply_filters('active_plugins', get_option('active_plugins')); |
| 12 | if (class_exists('Jetpack') || in_array( 'jetpack/jetpack.php', $activePlugins )) { |
| 13 | return true; |
| 14 | } |
| 15 | return false; |
| 16 | } |
| 17 | public static function getSitemapURL() { |
| 18 | if (class_exists('Jetpack') && Jetpack::is_module_active( 'sitemaps' )) { |
| 19 | $sitemapURL = get_home_url() . '/sitemap.xml'; |
| 20 | return self::validateURL($sitemapURL, 'text/xml') ? $sitemapURL : false; |
| 21 | } |
| 22 | return false; |
| 23 | } |
| 24 | public function init($stage) { |
| 25 | } |
| 26 | } |
| 27 |