apply_filters( ‘pre_load_textdomain’, bool|null $loaded, string $domain, string $mofile, string|null $locale )

Filters whether to short-circuit loading .mo file.

Description

Returning a non-null value from the filter will effectively short-circuit the loading, returning the passed value instead.

Parameters

$loadedbool|null
The result of loading a .mo file. Default null.
$domainstring
Text domain. Unique identifier for retrieving translated strings.
$mofilestring
Path to the MO file.
$localestring|null
Locale.

Source

$loaded = apply_filters( 'pre_load_textdomain', null, $domain, $mofile, $locale );

Changelog

VersionDescription
6.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.