override_load_textdomain WordPress Filter Hook

The override_load_textdomain hook allows a plugin to override the default domain loading behavior. This can be useful if a plugin needs to load a textdomain that is not properly registered.

apply_filters( 'override_load_textdomain', bool $override, string $domain, string $mofile ) #

Filters whether to override the .mo file loading.


Parameters

$override

(bool)Whether to override the .mo file loading. Default false.

$domain

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

$mofile

(string)Path to the MO file.


Top ↑

Source

File: wp-includes/l10n.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.