wphooks.info - unload_textdomain

unload_textdomain

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-includes/l10n.php:
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
		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;
	}