Duplicate Snippet
Embed Snippet on Your Site
Add Translated Version Sitemap Entries for a Specific Term
This filter can be used to add Translated Version Sitemap Entries for a Specific Term.
You can replace "12" in "12 === $termId" 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