load_textdomain

SummerySummery

Load a .mo file into the text domain $domain.

Syntax

load_textdomain( string $domain, string $mofile )

DescriptionDescription

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.

ParametersParameters

$domain

(string) (Required) Text domain. Unique identifier for retrieving translated strings.

$mofile

(string) (Required) Path to the .mo file.

ReturnReturn

(bool) True on success, false on failure.

SourceSource

File: wp-includes/l10n.php


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.
Scroll to Top