Core Function
View Source on Trac ↗ load_textdomain()
load_textdomain( mixed $domain, mixed $mofile, mixed $locale = null ) Loads a .mo file into the text domain $domain.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $domain string | Text domain. Unique identifier for retrieving translated strings. Required |
| $mofile string | Path to the .mo file. Required |
| $locale string | Optional. Locale. Default is the current locale. |
Return Value
(bool)
True on success, false on failure.
Function Information
Since Version
1.5.0
Source File
wp-includes/l10n.php
Advertisement