WPDev.one
Core Function
View Source on Trac ↗

load_plugin_textdomain()

load_plugin_textdomain( mixed $domain, mixed $deprecated = false, mixed $plugin_rel_path = false )

Loads a plugin's translated strings.

Parameters 3 required

Name / Type Description
$domain
string

Unique identifier for retrieving translated strings

Required
mixed

(string | false) $deprecated Optional. Deprecated. Use the $plugin_rel_path parameter instead. Default false.

Required
mixed

(string | false) $plugin_rel_path Optional. Relative path to WP_PLUGIN_DIR where the .mo file resides. Default false.

Required

Return Value

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

Function Information

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