Passer au contenu Passer à la barre latérale
Sun Mon Tue Wed Thu Fri Sat
12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 12:00 – 20:00 - -
- - - - - - -

Fuseau horaire du support : Asia/Karachi (GMT+05:00)

Ce sujet contient 0 réponse, a 1 voix.

Dernière mise à jour par michalM-16 Il y a 1 année et 11 mois.

Assisté par: Noman.

Auteur Messages
août 9, 2023 à 12:06 pm #14175555

michalM-16

My team use the WPML plugin. We will be doing a new wordpress implementation as headless cms. The question is: Our programmers send data to the frontend via the rest api, the big problem is that the plugin creates clones of the subpage, so for one subpage we have to send queries to the url with a separate id, and we would like to send queries to one endpoint and set the language through the query parameter, an example endpoint to which we would like to send a query for data:
wp-json/wp/v2/homepage?lang=en
instead of doing something like wp-json/wp/v2/pages/133

Is there any simplification in this matter that we may not know about?

Le sujet « [Fermé] How to get/send translated pages using rest api » est fermé aux nouvelles réponses.