| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace Yatra\Sitemap\Integrations; |
| 6 |
|
| 7 |
/** |
| 8 |
* Links Yatra's consolidated sitemap into Yoast SEO's index |
| 9 |
* (sitemap_index.xml). Yoast disables WordPress core sitemaps, so without this |
| 10 |
* Yatra would only be discoverable via robots.txt, not inside Yoast's index. |
| 11 |
*/ |
| 12 |
class YoastIntegration extends AbstractIndexIntegration |
| 13 |
{ |
| 14 |
public function register(): void |
| 15 |
{ |
| 16 |
add_filter('wpseo_sitemap_index', [$this, 'append']); |
| 17 |
} |
| 18 |
} |
| 19 |
|