aioseo_sitemap_indexes

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:

  1. loc – the URL for the index;
  2. lastmod – datetime for when the index was last updated (formatted according to ISO 8061);
  3. 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

VersionDescription
4.1.5Introduced.

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.