---
title: Filter the robots.txt alert arguments
url: "https://www.seopress.org/support/hooks/filter-the-robots-alert-arguments/"
lang: en-US
updated: 2025-01-20
hook_name: seopress_seo_alerts_robots_args
required_version: 8.5
---

# Filter the robots.txt alert arguments

- **Hook name:** `seopress_seo_alerts_robots_args`
- **Required version:** 8.5

```php
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;
}
```

Source: [https://gist.github.com/wp-seopress/5bb102b5b3df03fc3e20b5e4d3a3ac06](https://gist.github.com/wp-seopress/5bb102b5b3df03fc3e20b5e4d3a3ac06)



