---
title: Filter the HTTP request arguments used by the XML sitemap health check
url: "https://www.seopress.org/support/hooks/filter-the-http-request-arguments-used-by-the-xml-sitemap-health-check/"
lang: en-US
updated: 2026-06-16
hook_name: seopress_sitemap_diagnostic_request_args
required_version: 10.0
---

# Filter the HTTP request arguments used by the XML sitemap health check

- **Hook name:** `seopress_sitemap_diagnostic_request_args`
- **Required version:** 10.0

```php
add_filter( 'seopress_sitemap_diagnostic_request_args', 'sp_sitemap_diagnostic_request_args', 10, 2 );
function sp_sitemap_diagnostic_request_args( $args, $url ) {
	// Give the health check more time on slow servers.
	$args['timeout'] = 30;

	return $args;
};
```

Source: [https://gist.github.com/wp-seopress/9f152c3727a1c813996707b4157dfc49](https://gist.github.com/wp-seopress/9f152c3727a1c813996707b4157dfc49)



