Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//* 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:";
return $output;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment