WPDev.one
Core Function
View Source on Trac ↗

_get_path_to_translation()

_get_path_to_translation( mixed $domain, mixed $reset = false )

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

Parameters 1 required

Name / Type Description
$domain
string

Text domain. Unique identifier for retrieving translated strings.

Required
$reset
bool

Whether to reset the internal cache. Used by the switch to locale functionality.

Return Value

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

Function Information

Since Version
4.7.0
Source File
wp-includes/deprecated.php
Advertisement