Automattic\WooCommerce\Internal\Admin
Translations::__construct()
Constructor. Hooks added here should be removed in wc_admin_initialize via the feature plugin.
Method of the class: Translations{}
No Hooks.
Return
null
. Nothing (null).
Usage
$Translations = new Translations(); $Translations->__construct();
Translations::__construct() Translations:: construct code WC 9.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' ) ); }