Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the community forum?
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?

1 month ago
Stefan

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.

How to create my own column?

If the export already works, but is not translated, you might want to have a look at this hook.

acp/editing/value


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.

1 month ago
solasites.com

Thank you!

3 weeks, 4 days ago

You must be logged in to reply to this topic.