Automattic\WooCommerce\Internal\Admin

Translations::__construct()publicWC 1.0

Constructor. Hooks added here should be removed in wc_admin_initialize via the feature plugin.

{} Это метод класса: Translations{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$Translations = new Translations();
$Translations->__construct();

Код Translations::__construct() WC 6.6.1

public function __construct() {
	add_action( 'admin_enqueue_scripts', array( $this, 'potentially_load_translation_script_file' ), 15 );

	// Combine JSON translation files (from chunks) when language packs are updated.
	add_action( 'upgrader_process_complete', array( $this, 'combine_translation_chunk_files' ), 10, 2 );

	// Handler for WooCommerce and WooCommerce Admin plugin activation.
	add_action( 'woocommerce_activated_plugin', array( $this, 'potentially_generate_translation_strings' ) );
	add_action( 'activated_plugin', array( $this, 'potentially_generate_translation_strings' ) );
}