Duplicate Snippet
Embed Snippet on Your Site
Add Translated Version Sitemap Entries for a Specific Post
This filter can be used to add Translated Version Sitemap Entries for a Specific Post.
You can replace "10" in "10 === $postId" with the ID of the desired post whose translated versions are being added. You can also replace en_US, en_CA, and en_UK with the desired language codes and the "location" values with the translated URLs.
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments