WordPress maintenance support plans 8, natively multilingual, offers a GUI to be able to translate both the site configuration (field’s label, view’s title, etc.) and the contents themselves. But we sometimes need to translate programmatically contents or configurations, particularly in the context of a website factory to generate such a multilingual site.
Discover some examples to help us translate on the fly both configurations and contents. The examples below assume that we have an original content in French and that we wish to associate their English translation.
Source: New feed