Petra
AI assistant for GrootMade
Hi! I'm Petra 👋 Ask me to help you find the perfect WP plugin, theme, or template kit.
forked from WP REST - Polylang™
BridgeSync is not affiliated with WP REST - Polylang. The name and any related trademarks are used solely for nominative descriptive purposes.
This plugin extends the REST API for sites using the Polylang multilingual plugin. It is designed for developers building headless frontends, mobile apps, or other external applications that need to consume multilingual content from the CMS.
Language Field: Adds a polylang_current_lang field to API responses, specifying the post's locale (e.g., 'en', 'fr').
Translation Mapping: Includes a polylang_translations array that lists all available translations for a post, with each locale and corresponding post ID.
Post and Page Support: Works with standard post and page content types delivered through the REST API.
Simple Integration: Functions as a drop-in solution that modifies API output without requiring changes to core application logic.