Theme strings (_e, __, _x)
The plugin hooks WordPress gettext filters so theme and plugin strings can be translated from the CMS.
Supported functions
__()_e()/esc_html_e()_x()/_ex()(with context)
How it works
- Frontend renders a page in the default language
- Each gettext string is auto-registered when it appears on the page
- You translate them under Translations → Theme / _e()
- On
/en/...(or another prefix), visitors see your CMS translation
Default language still uses normal WordPress .mo files when present.
Gutenberg vs PHP strings
| Source | Where to translate |
|---|---|
| Gutenberg block text in the editor | Gutenberg blocks |
PHP theme labels (_e('Read more', 'my-theme')) | Theme / _e() tab |