Programmatically duplicate all images from one lang to another
-
hi,
i researched to automate image translating and found this topic, which is allread closed https://wordpress.org/support/topic/programmatically-duplicate-all-images-from-one-lang-to-another?replies=11
based on that i created a “ready to go for developers” script for the functions.php of any theme which makes it easy to translate the meta fields of attachments and i like to share it if anybody can use it:
https://github.com/netzgestaltung/wordpress-snippets/blob/master/polylang-translate-attachments.php
maybe someone can turn this into a seperate plugin with a backend button to start the action.
cheers
tom
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Programmatically duplicate all images from one lang to another’ is closed to new replies.