WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::tracking_modal() public WC 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.

{} It's a method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Admin_Setup_Wizard = new WC_Admin_Setup_Wizard();
$WC_Admin_Setup_Wizard->tracking_modal();

Changelog

Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard::tracking_modal() WC 5.9.0

<?php
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>
					</header>
					<article>
						<p>
						<?php
							printf(
								wp_kses(
									/* 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' ),
									array(
										'a' => array(
											'href'   => array(),
											'target' => array(),
										),
									)
								),
								'https://woocommerce.com/usage-tracking/'
							);
						?>
						</p>
						<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>
						</p>
					</article>
					<footer>
						<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>
					</footer>
				</section>
			</div>
		</div>
		<div class="wc-backbone-modal-backdrop modal-close"></div>
	</script>
	<?php
}