load_default_textdomain

SummerySummery

Load default translated strings based on locale.

Syntax

load_default_textdomain( string $locale = null )

DescriptionDescription

Loads the .mo file in WP_LANG_DIR constant path from WordPress root. The translated (.mo) file is named based on the locale.

ParametersParameters

$locale

(string) (Optional) Locale to load. Default is the value of get_locale().

Default value: null

ReturnReturn

(bool) Whether the textdomain was loaded.

SourceSource

File: wp-includes/l10n.php


			

ChangelogChangelog

Changelog
Version Description
1.5.0 Introduced.

See alsoSee also

Scroll to Top