Locale changed during Ajax call with REST API
-
Hi,
I have encountered an issue which the locale changed to the default locale when I get posts with REST API through an Ajax call. I have been using admin-ajax.php for Ajax call, and the locale returned correctly.
How can I set the locale for REST API?
Code for my plugin and demonstrate the issue more clearly: https://wordpress.stackexchange.com/questions/359506/locale-changed-unintentionally-during-ajax-call-through-rest-api
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Locale changed during Ajax call with REST API’ is closed to new replies.