aioseo_sitemap_rss

This filter can be used to filter the entries that are included in the RSS sitemap/feed.

Parameters (1)

$entries (array)
The sitemap entries.

Example code snippet

The code snippet below can be used to change the time zone offset in the publish date of the sitemap entries. This can be useful for when a platform requires the date to be formatted to a specific timezone (e.g. Yandex News/Zen/Дзéн).

Changelog

VersionDescription
4.0.0Introduced.

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.