Support

Search results for ""

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

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?

5 years ago
Stefan van den Dungen Gronovius
Developer

Hello,
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.

https://www.admincolumns.com/documentation/guides/creating-new-column-type/

If the export already works, but is not translated, you might want to have a look at this hook.
https://www.admincolumns.com/documentation/filter-reference/acpeditingvalue/
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.

5 years ago
solasites.com

Thank you!

5 years ago

You must be logged in to reply to this topic.