How to get locale within WP REST Request?
There’s only 2 real places a locale is defined in a vanilla WordPress install: For the site. For the user account. In the admin the user account’s locale will be used, while on the front end the site’s locale will be used. For REST API requests the user locale can be used by passing _locale=user … Read more