Translations_Loader::override_locale( string $locale )

A proxy method to return the current override locale if set, or the input locale otherwise.

Used during filter application.


Parameters

$locale

(string) (Required) The locale to override.


Top ↑

Return

(string) The overridden locale.


Top ↑

Source

File: src/Common/Translations_Loader.php

	public function override_locale( $locale ) {
		return $this->override_locale ?: $locale;
	}

Top ↑

Changelog

Changelog
Version Description
5.0.8 Introduced.