WC_Admin_Setup_Wizard::tracking_modal()publicWC 1.0

Deprecated from version 4.6.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Template for the usage tracking modal.

Method of the class: WC_Admin_Setup_Wizard{}

No Hooks.


null. Nothing (null).


$WC_Admin_Setup_Wizard = new WC_Admin_Setup_Wizard();


Deprecated since 4.6.0

WC_Admin_Setup_Wizard::tracking_modal() code WC 8.9.0

public function tracking_modal() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	<script type="text/template" id="tmpl-wc-modal-tracking-setup">
		<div class="wc-backbone-modal woocommerce-tracker">
			<div class="wc-backbone-modal-content">
				<section class="wc-backbone-modal-main" role="main">
					<header class="wc-backbone-modal-header">
						<h1><?php esc_html_e( 'Help improve WooCommerce with usage tracking', 'woocommerce' ); ?></h1>
									/* translators: %1$s: usage tracking help link */
									__( 'Learn more about how usage tracking works, and how you\'ll be helping in our <a href="%1$s" target="_blank">usage tracking documentation</a>.', 'woocommerce' ),
										'a' => array(
											'href'   => array(),
											'target' => array(),
						<p class="woocommerce-tracker-checkbox">
							<input type="checkbox" id="wc_tracker_checkbox_dialog" name="wc_tracker_checkbox_dialog" value="yes" <?php checked( 'yes', get_option( 'woocommerce_allow_tracking', 'no' ) ); ?> />
							<label for="wc_tracker_checkbox_dialog"><?php esc_html_e( 'Enable usage tracking and help improve WooCommerce', 'woocommerce' ); ?></label>
						<div class="inner">
							<button class="button button-primary button-large" id="wc_tracker_submit" aria-label="<?php esc_attr_e( 'Continue', 'woocommerce' ); ?>"><?php esc_html_e( 'Continue', 'woocommerce' ); ?></button>
		<div class="wc-backbone-modal-backdrop modal-close"></div>