wphooks.info - override_load_textdomain

override_load_textdomain

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/l10n.php:
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
	/**
	 * Filters whether to override the .mo file loading.
	 *
	 * @since 2.9.0
	 *
	 * @param bool   $override Whether to override the .mo file loading. Default false.
	 * @param string $domain   Text domain. Unique identifier for retrieving translated strings.
	 * @param string $mofile   Path to the MO file.
	 */
	$plugin_override = apply_filters( 'override_load_textdomain', false, $domain, $mofile );

	if ( true == $plugin_override ) {
		unset( $l10n_unloaded[ $domain ] );

		return true;
	}

	/**
	 * Fires before the MO translation file is loaded.