This filter can be used to advertise the translated versions of a post so that these can be included in the multilingual sitemap of AIOSEO.
Parameters (3)
$entry (array)
The sitemap entry data.
$postId (int)
The post ID.
$postType (string)
The post type.
Example code snippet
The code snippet below can be used to add translated versions for a specific post sitemap entry.
Changelog
Version | Description |
---|---|
4.2.2 | 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.