Last active
November 27, 2015 14:18
-
-
Save trepmal/57b13bc324b7b22b19ba to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Robots Crawl Delay | |
*/ | |
function prefix_robots_crawl_delay( $output, $public ) { | |
$output .= "Crawl-delay: 8\n"; | |
return $output; | |
} | |
add_filter( 'robots_txt', 'prefix_robots_crawl_delay', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment