MainWP Community

Remove the URL for the XML Sitemap from the virtual robots.txt in All in One SEO Pack

Remove the URL for the XML Sitemap from the virtual robots.txt file generated by if using All in One SEO Pack on your child site.

Snippet Type

Execute on Child Sites

Snippet

add_filter( 'aioseop_robotstxt_sitemap_url', '__return_false' );
1 Like