Home / Admin / Disable the Last Updated Date in Index/Root XML Sitemap
Duplicate Snippet

Embed Snippet on Your Site

Disable the Last Updated Date in Index/Root XML Sitemap

This filter can be used to disable the Last Updated date that All in One SEO adds to the XML Sitemap index.

This only disables the Last Updated date on post type and taxonomy sitemaps. It doesn’t disable it for archives such as date and author.

<10
Code Preview
php
<?php
add_filter( 'aioseo_sitemap_lastmod_disable', '__return_true' );

Comments

Add a Comment