PluginProbe
Yatra – Travel Booking & Tour Operator Software / trunk
Yatra – Travel Booking & Tour Operator Software vtrunk
3.0.14 3.0.14.1 3.0.14.2 3.0.12 3.0.13 3.0.11 3.0.10 3.0.9 3.0.8 3.0.7 3.0.6 3.0.5 3.0.5.1 3.0.4 3.0.3 3.0.2.9 3.0.2.7 3.0.2.8 3.0.2.6 trunk 1.0.0 2.0.0 2.0.1 2.0.10 2.0.11 All 82 releases
yatra / app / Sitemap / Integrations / RankMathIntegration.php

RankMathIntegration.php in Yatra – Travel Booking & Tour Operator Software trunk, at app/Sitemap/Integrations/RankMathIntegration.php

21 lines 579 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Yatra\Sitemap\Integrations;
6
7 /**
8 * Links Yatra's consolidated sitemap into Rank Math's sitemap index. Like
9 * Yoast, Rank Math owns sitemap generation and exposes a filterable index XML
10 * string.
11 */
12 class RankMathIntegration extends AbstractIndexIntegration
13 {
14 public function register(): void
15 {
16 // Priority 11: Rank Math builds the index at the default priority (10),
17 // so we append after it (per Rank Math's documented example).
18 add_filter('rank_math/sitemap/index', [$this, 'append'], 11);
19 }
20 }
21