WPDev.one
Core Function
View Source on Trac ↗

load_muplugin_textdomain()

load_muplugin_textdomain( mixed $domain, mixed $mu_plugin_rel_path = '' )

Loads the translated strings for a plugin residing in the mu-plugins directory.

Parameters 2 required

Name / Type Description
$domain
string

Text domain. Unique identifier for retrieving translated strings.

Required
string

$mu_plugin_rel_path Optional. Relative to `WPMU_PLUGIN_DIR` directory in which the .mo file resides. Default empty string.

Required

Return Value

(bool)
True when textdomain is successfully loaded, false otherwise.

Function Information

Since Version
3.0.0
Source File
wp-includes/l10n.php
Advertisement