ACF.php
1 year ago
AdvancedMathCaptcha.php
1 year ago
AeliaCurrencySwitcher.php
11 months ago
BeaverBuilder.php
1 year ago
CF_Helper.php
1 year ago
CURCY_MultiCurrency.php
1 year ago
Cloudflare.php
1 year ago
CommonHelpers.php
1 year ago
CookieNotice.php
1 year ago
DownloadManager.php
1 year ago
Elementor.php
6 months ago
Ezoic.php
1 year ago
FusionBuilder.php
1 year ago
GeoTargetingWP.php
1 year ago
GravityForms.php
1 year 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 year 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
1 year ago
WPRocket.php
1 year ago
WooCommerce.php
11 months ago
WoocommerceCacheHandler.php
1 year ago
YoastSEO.php
1 year ago
RankMathNP.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | namespace NitroPack\Integration\Plugin; |
| 4 | |
| 5 | use \RankMath\Helper; |
| 6 | class RankMathNP { |
| 7 | use CommonHelpers; |
| 8 | const STAGE = "late"; |
| 9 | public static function isActive() { |
| 10 | $activePlugins = apply_filters('active_plugins', get_option('active_plugins')); |
| 11 | if (class_exists('RankMath') || in_array( 'seo-by-rank-math/rank-math.php', $activePlugins )) { |
| 12 | return true; |
| 13 | } |
| 14 | return false; |
| 15 | } |
| 16 | public static function getSitemapURL() { |
| 17 | if (class_exists('RankMath\Helper') && Helper::is_module_active( 'sitemap' )) { |
| 18 | $sitemapURL = get_home_url() . '/sitemap_index.xml'; |
| 19 | return self::validateURL($sitemapURL, 'text/xml') ? $sitemapURL : false; |
| 20 | } |
| 21 | return false; |
| 22 | } |
| 23 | public function init($stage) { |
| 24 | } |
| 25 | } |