load_textdomain хук-событие . WP 2.9.0
Fires before the MO translation file is loaded.
Использование
add_action( 'load_textdomain', 'action_function_name_6854', 10, 2 ); function action_function_name_6854( $domain, $mofile ){ // action... }
- $domain(строка)
- Text domain. Unique identifier for retrieving translated strings.
- $mofile(строка)
- Path to the .mo file.
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
wp-includes/l10n.php 729
do_action( 'load_textdomain', $domain, $mofile );