Yoast+Transposh: a hook for get_sitemap_links ?
-
Hi Yoast team,
I am using Yoast on a site using translations by Transposh, one of the main translation plugins for WordPress.
So as to have translated pages (of the format mydomaincom/ja/2023/01/….) listed in Yoast sitemaps, Transposh integrates with Yoast, and Yoast plugin files needs to be edited.
The edit, as described on https://vidyut.net/transposh-translation-filter-yoast-sitemaps-compatibility/, work fine with Yoast 20.2.1 : some code needs to be inserted into
public function get_sitemap_links( $type, $max_entries, $current_page )
at line 242 in the file?wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php?
What I wondered is, so that I can enable auto-updates for Yoast without losing my modifications, whether it’s possible to write a filter or something in my theme functions.php, that will have the same impact, and not be overwritten when I update Yoast.
Thanks for any tip
- The topic ‘Yoast+Transposh: a hook for get_sitemap_links ?’ is closed to new replies.