Automattic\WooCommerce\Internal\Admin
Translations::potentially_load_translation_script_file()
Loads the required translation scripts on the correct pages.
Метод класса: Translations{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Translations = new Translations(); $Translations->potentially_load_translation_script_file();
Код Translations::potentially_load_translation_script_file() Translations::potentially load translation script file WC 8.7.0
public function potentially_load_translation_script_file() { if ( ! PageController::is_admin_or_embed_page() ) { return; } // Grab translation strings from Webpack-generated chunks. add_filter( 'load_script_translation_file', array( $this, 'load_script_translation_file' ), 10, 3 ); }