Skip to content

Instantly share code, notes, and snippets.

@wp-seopress
Created January 20, 2025 14:31
Show Gist options
  • Save wp-seopress/5bb102b5b3df03fc3e20b5e4d3a3ac06 to your computer and use it in GitHub Desktop.
Save wp-seopress/5bb102b5b3df03fc3e20b5e4d3a3ac06 to your computer and use it in GitHub Desktop.
Filter the robots.txt alert arguments
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