load_textdomain WordPress Action Hook

The load_textdomain hook is used to load a plugin's translated strings. It is called after the plugin has been loaded and the textdomain has been set. It is generally used to load language files from a plugin's directory.

do_action( 'load_textdomain', string $domain, string $mofile ) #

Fires before the MO translation file is loaded.


Parameters

$domain

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

$mofile

(string)Path to the .mo file.


Top ↑

Source

File: wp-includes/l10n.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.