uncatcrea / wp-appkit

WP-AppKit WordPress plugin (create mobile apps connected to WordPress)
http://uncategorized-creations.com/
194 stars 66 forks source link

Compatibility with WPML plugin #369

Closed eskaigualker closed 5 years ago

eskaigualker commented 5 years ago

Is it possible to get both plugins working?

Thank you

mleroi commented 5 years ago

Hi,

Yes WP-AppKit allows to customize post data sent to apps, so it is possible to send translated posts to your app. It will require some development though (using WP-AppKit and WPML hooks and apis) to be able to retrieve and send translated posts to the app.

The first thing is to define what you want to achieve exactly. There are 2 ways of addressing this problematic with WP-AppKit:

Note that solution 2 can be seducing but the downside is that depending on the number of posts you need to display and the number of languages, it can lead to performance issues, and it is significantly trickier to implement.

Depending on what you want to achieve exactly we can give you implementation hints.