Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

load_textdomain()

3 tags 1 category

load_textdomain() — Loads a .mo file into the text domain $domain. If the text domain already exists, the translations will be merged. If both sets have the same string, the translation from the original value will be taken. On success, the .mo file will be placed in the $l10n global by $domain and will be a MO object.

Inputs: $domain (string): Text domain. Unique identifier for retrieving translated strings. $mofile (string): Path to the .mo file. $locale (string): Optional. Locale. Default is the current locale.

Returns bool: True on success, false on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…