Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics

Add Export Support to Plugin

We are using WPML to translate posts. We would like to export the links and languages to various translations of the post. WPML has this info in the columns, but the export of this info is disabled due to WPML not supporting it. We’re looking for a workaround. Do you have a snippet that we can add to functions.php or by creating a plugin that will allow us to see the various languages and post links of the translation of all of the posts in the list in the admin panel?

4 years, 9 months ago
Stefan van den Dungen Gronovius

The only way I see to support this is to create your own column that uses the WPML methods to retrieve its value.
In that case, you can also determine your own logic that must run when exporting the data.
We have a toolkit that will help you to get started.

If the export already works, but is not translated, you might want to have a look at this hook.
Every value runs through this filter, so you should be able to run WPML methods to replace the current value.
You also have access to the $column variable which allows you to retrieve some extra information if necessary.

4 years, 9 months ago

Thank you!

4 years, 9 months ago

You must be logged in to reply to this topic.