Created
June 16, 2026 13:14
-
-
Save wp-seopress/9f152c3727a1c813996707b4157dfc49 to your computer and use it in GitHub Desktop.
Filter the HTTP request arguments used by the XML sitemap health check
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_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; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment