load_script_translation_file хук-фильтр . WP 5.0.2
Filters the file path for loading script translations for the given script handle and text domain.
Использование
add_filter( 'load_script_translation_file', 'filter_function_name_5305', 10, 3 ); function filter_function_name_5305( $file, $handle, $domain ){ // filter... return $file; }
- $file(строка/false)
- Path to the translation file to load. False if there isn't one.
- $handle(строка)
- Name of the script to register a translation domain to.
- $domain(строка)
- The text domain.
Список изменений
С версии 5.0.2 | Введена. |
Где вызывается хук
wp-includes/l10n.php 1162
$file = apply_filters( 'load_script_translation_file', $file, $handle, $domain );