Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
This filter can be used to control the indexes that AIOSEO includes in the general sitemap.
Parameters (1)
$indexes (multidimensional array)
The list of indexes. Each index has two properties:
- loc – the URL for the index;
- lastmod – datetime for when the index was last updated (formatted according to ISO 8061);
- count – the amount of URLs that are included in the index.
Example code snippet
In the example below, an extra sitemap index is added to the root index.
Changelog
Version | Description |
---|---|
4.1.5 | Introduced. |
Implementation
Need help using our code snippets? Checkout our documentation on “How do I use your API code examples?“.
We recommend using the WPCode plugin for safe and secure implementation. WPCode performs multiple sanitization tests before activating the snippets, ensuring the safety of your website.