load_textdomain_mofile WordPress Filter Hook

The load_textdomain_mofile hook is used to load a .mo file for a given domain. This hook is called whenever a translation is needed for a given domain. This hook is useful for plugin and theme developers who want to load their own translations for their products. By using this hook, they can make sure that their translations are loaded correctly and utilized by WordPress.

apply_filters( 'load_textdomain_mofile', string $mofile, string $domain ) #

Filters MO file path for loading translations for a specific text domain.


Parameters

$mofile

(string)Path to the MO file.

$domain

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


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.