restore_previous_locale

restore_previous_locale

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

do_action('restore_previous_locale') is found 1 times:

  • /wp-includes/class-wp-locale-switcher.php line 149
    		 *
    		 * @param string $locale          The new locale.
    		 * @param string $previous_locale The previous locale.
    		 */
    		do_action( 'restore_previous_locale', $locale, $previous_locale[0] );
    
    		return $locale;
    	}
    
    	/**
    	 * Restores the translations according to the original locale.