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.
Source
File: wp-includes/l10n.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |