Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
//* Append directives to the virtual robots.txt
//* Siteground adds crawl-delay: 10 to robots.txt. Don't use physical robots.txt on SiteGround
add_filter( 'robots_txt', 'robots_mod', 10, 2 );
function robots_mod( $output, $public ) {
$output .= "Sitemap: https://victorfont.com/sitemap_index.xml";
return $output;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment