---
title: Filter XML author sitemap
url: "https://www.seopress.org/support/hooks/filter-xml-author-sitemap/"
lang: en-US
updated: 2021-09-30
hook_name: seopress_sitemaps_xml_author
required_version: 3.7.5
---

# Filter XML author sitemap

- **Hook name:** `seopress_sitemaps_xml_author`
- **Required version:** 3.7.5

```php
add_filter('seopress_sitemaps_xml_author', 'sp_sitemaps_xml_author');
function sp_sitemaps_xml_author($xml) {
	//complete XML author sitemap
	//do your stuff here
	return $xml;	
}
```

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


**This snippet must be added to a [must-use plugin](https://wordpress.org/support/article/must-use-plugins/) to make it work.**
