feat: replace domain in sitemaps
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 56s

This commit is contained in:
2025-09-25 22:38:36 -04:00
parent 626f80a610
commit cfa40d3825
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<?php
// Replace domain used in sitemap.xml
add_filter( 'rank_math/sitemap/entry', 'ccat_rank_math_seo_replace_domain' );
function ccat_rank_math_seo_replace_domain( $entry ) {
$entry['loc'] = str_replace( 'wp.cultureat.ca', 'cultureat.ca', $entry['loc'] );
return $entry;
}