# yatra/3.0.8/app/Sitemap/Integrations/YoastIntegration.php

Yatra – Travel Booking &amp; Tour Operator Software, version 3.0.8. 19 lines.

- Page: https://pluginprobe.com/plugins/yatra/3.0.8/code/app/Sitemap/Integrations/YoastIntegration.php
- Raw: https://pluginprobe.com/plugins/yatra/3.0.8/raw/app/Sitemap/Integrations/YoastIntegration.php
- Modified: 2026-06-26T07:21:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/yatra/3.0.8/code/app/Sitemap/Integrations/YoastIntegration.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace Yatra\Sitemap\Integrations;

/**
 * Links Yatra's consolidated sitemap into Yoast SEO's index
 * (sitemap_index.xml). Yoast disables WordPress core sitemaps, so without this
 * Yatra would only be discoverable via robots.txt, not inside Yoast's index.
 */
class YoastIntegration extends AbstractIndexIntegration
{
    public function register(): void
    {
        add_filter('wpseo_sitemap_index', [$this, 'append']);
    }
}

```
