wphooks.info - override_unload_textdomain

override_unload_textdomain

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/l10n.php:
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
	$l10n_unloaded = (array) $l10n_unloaded;

	/**
	 * Filters whether to override the text domain unloading.
	 *
	 * @since 3.0.0
	 *
	 * @param bool   $override Whether to override the text domain unloading. Default false.
	 * @param string $domain   Text domain. Unique identifier for retrieving translated strings.
	 */
	$plugin_override = apply_filters( 'override_unload_textdomain', false, $domain );

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

		return true;
	}

	/**
	 * Fires before the text domain is unloaded.