load_textdomain action-hookWP 2.9.0

Fires before the MO translation file is loaded.

Usage

add_action( 'load_textdomain', 'wp_kama_load_textdomain_action', 10, 2 );

/**
 * Function for `load_textdomain` action-hook.
 * 
 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
 * @param string $mofile Path to the .mo file.
 *
 * @return void
 */
function wp_kama_load_textdomain_action( $domain, $mofile ){

	// action...
}
$domain(string)
Text domain. Unique identifier for retrieving translated strings.
$mofile(string)
Path to the .mo file.

Changelog

Since 2.9.0 Introduced.

Where the hook is called

load_textdomain()
load_textdomain
wp-includes/l10n.php 771
do_action( 'load_textdomain', $domain, $mofile );

Where the hook is used in WordPress

Usage not found.