unload_textdomain

unload_textdomain

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('unload_textdomain') is found 1 times:

  • /wp-includes/l10n.php line 912
    	 *
    	 * @param string $domain     Text domain. Unique identifier for retrieving translated strings.
    	 * @param bool   $reloadable Whether the text domain can be loaded just-in-time again.
    	 */
    	do_action( 'unload_textdomain', $domain, $reloadable );
    
    	// Since multiple locales are supported, reloadable text domains don't actually need to be unloaded.
    	if ( ! $reloadable ) {
    		WP_Translation_Controller::get_instance()->unload_textdomain( $domain );
    	}