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.
Source
File: wp-includes/l10n.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |