{"id":4124438,"date":"2013-09-13T13:41:21","date_gmt":"2013-09-13T13:41:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/translating-links\/"},"modified":"2016-08-21T05:08:18","modified_gmt":"2016-08-21T05:08:18","slug":"translating-links","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/translating-links\/","title":{"rendered":"Translating links"},"content":{"rendered":"<p>I wonder if there is an easy way to translate links generated by other plugins. For example, I&#8217;m working with woocommerce and when you add an item to your cart, it shows a &#8220;View cart&#8221; option. Everything is in the language selected, but the &#8220;VIew cart&#8221; button always link to the same page in the same language, although I have translated it.<br \/>\nI was reading I tried with stuff like<br \/>\n  add_filter(&#8216;pll_the_language_link&#8217;, &#8216;post_type_link&#8217;);<br \/>\nbut didn&#8217;t work.<br \/>\nIf something like that could work, it will be very useful for other plugins.<br \/>\nThanks a lot, your plugin is great!<\/p>\n","protected":false},"template":"","class_list":["post-4124438","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4124438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4124438\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4124438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}