_get_path_to_translation

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 _load_textdomain_just_in_time() instead.

SummerySummery

Gets the path to a translation file for loading a textdomain just in time.

Syntax

_get_path_to_translation( string $domain, bool $reset = false )

DescriptionDescription

Caches the retrieved results internally.

ParametersParameters

$domain

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

$reset

(bool) (Optional) Whether to reset the internal cache. Used by the switch to locale functionality.

Default value: false

ReturnReturn

(string|false) The path to the translation file or false if no translation file was found.

SourceSource

File: wp-includes/l10n.php


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.

See alsoSee also

Scroll to Top