@@ 445-448 (lines=4) @@ | ||
442 | */ |
|
443 | $discover_sitemap = apply_filters( 'jetpack_sitemap_generate', true ); |
|
444 | ||
445 | if ( true === $discover_sitemap ) { |
|
446 | $sitemap_url = $this->finder->construct_sitemap_url( 'sitemap.xml' ); |
|
447 | echo 'Sitemap: ' . esc_url( $sitemap_url ) . "\n"; |
|
448 | } |
|
449 | ||
450 | /** |
|
451 | * Filter whether to make the news sitemap discoverable to robots or not. Default true. |
|
@@ 460-463 (lines=4) @@ | ||
457 | */ |
|
458 | $discover_news_sitemap = apply_filters( 'jetpack_news_sitemap_generate', true ); |
|
459 | ||
460 | if ( true === $discover_news_sitemap ) { |
|
461 | $news_sitemap_url = $this->finder->construct_sitemap_url( 'news-sitemap.xml' ); |
|
462 | echo 'Sitemap: ' . esc_url( $news_sitemap_url ) . "\n"; |
|
463 | } |
|
464 | } |
|
465 | ||
466 | /** |