Created
January 20, 2025 14:31
-
-
Save wp-seopress/5bb102b5b3df03fc3e20b5e4d3a3ac06 to your computer and use it in GitHub Desktop.
Filter the robots.txt alert arguments
This file contains hidden or 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
add_filter('seopress_seo_alerts_robots_args', 'sp_seo_alerts_robots_args'); | |
function sp_seo_alerts_robots_args($args) { | |
// default args | |
$args = [ | |
'blocking' => true, | |
'timeout' => 10, | |
'redirection' => 1, | |
]; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment