Multilingual functions
translate
Retrieve the translation of text for current localization.
Arguments:
text
- text to translatedomain
- text domain. Unique identifier for retrieving translated strings. Default value:builderius_strings
- Description
- Example
- Result
translate(text, domain = "builderius_strings")
translate("Hello world!")
Result depends on the localization. For Ukrainian for example result will be:
Привіт світ!
info
This function works with all translation domains registered in Wordpress (from WP Core, from Plugins, from Themes).