wphooks.info - unload_textdomain

unload_textdomain

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/l10n.php:
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
		return true;
	}

	/**
	 * Fires before the text domain is unloaded.
	 *
	 * @since 3.0.0
	 *
	 * @param string $domain Text domain. Unique identifier for retrieving translated strings.
	 */
	do_action( 'unload_textdomain', $domain );

	if ( isset( $l10n[ $domain ] ) ) {
		unset( $l10n[ $domain ] );

		$l10n_unloaded[ $domain ] = true;

		return true;
	}