Function to get sitemap url
-
Hi there,
I’m trying to integrate your plugin with WP Rocket, but I’m not sure, what the correct method is to get the sitemap url.
Yoast:
WPSEO_Sitemaps_Router::get_base_url( 'sitemap_index.xml' );
Seo Framework:the_seo_framework()->get_sitemap_xml_url();
I tried
RankMath\Modules\Sitemap\Router::get_base_url( 'sitemap_index.xml' );
but does not seem to work.So whats the correct function call?
Thanks!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Function to get sitemap url’ is closed to new replies.