plugin_url() . '/assets/js/version-information' . $suffix . '.js', array( 'wc-backbone-modal' ), WC_BETA_TESTER_VERSION ); wp_register_script( 'wc-beta-tester-version-picker', WC_Beta_Tester::instance()->plugin_url() . '/assets/js/version-picker' . $suffix . '.js', array( 'wc-backbone-modal' ), WC_BETA_TESTER_VERSION ); $version = WC_VERSION; wp_localize_script( 'wc-beta-tester-version-info', 'wc_beta_tester_version_info_params', array( 'version' => $version, /* translators: %s: Release version number */ 'description' => sprintf( __( 'Release of version %s', 'woocommerce-beta-tester' ), $version ), ) ); wp_localize_script( 'wc-beta-tester-version-picker', 'wc_beta_tester_version_picker_params', array( 'i18n_pick_version' => __( 'Please pick a WooCommerce version.', 'woocommerce-beta-tester' ), ) ); wp_enqueue_script( 'wc-beta-tester-version-info' ); wp_enqueue_script( 'wc-beta-tester-version-picker' ); } } return new WC_Beta_Tester_Admin_Assets();