_load_textdomain_just_in_time

Private AccessPrivate Access

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use get_translations_for_domain() instead.

SummerySummery

Loads plugin and theme textdomains just-in-time.

Syntax

_load_textdomain_just_in_time( string $domain )

DescriptionDescription

When a textdomain is encountered for the first time, we try to load the translation file from wp-content/languages, removing the need to call load_plugin_texdomain() or load_theme_texdomain().

ParametersParameters

$domain

(string) (Required) Text domain. Unique identifier for retrieving translated strings.

ReturnReturn

(bool) True when the textdomain is successfully loaded, false otherwise.

SourceSource

File: wp-includes/l10n.php


			

ChangelogChangelog

Changelog
Version Description
4.6.0 Introduced.

See alsoSee also

Scroll to Top