override_load_textdomain filter-hookWP 2.9.0

Filters whether to override the .mo file loading.

Usage

add_filter( 'override_load_textdomain', 'wp_kama_override_load_textdomain_filter', 10, 3 );

/**
 * Function for `override_load_textdomain` filter-hook.
 * 
 * @param bool   $override Whether to override the .mo file loading.
 * @param string $domain   Text domain. Unique identifier for retrieving translated strings.
 * @param string $mofile   Path to the MO file.
 *
 * @return bool
 */
function wp_kama_override_load_textdomain_filter( $override, $domain, $mofile ){

	// filter...
	return $override;
}
$override(true|false)
Whether to override the .mo file loading.
Default: false
$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()
override_load_textdomain
wp-includes/l10n.php 733
$plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile );

Where the hook is used in WordPress

Usage not found.