WordPress at Your Fingertips
function is not described

WC_Admin_Setup_Wizard::wc_setup_new_onboarding() 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.

Display's a prompt for users to try out the new improved WooCommerce onboarding experience in WooCommerce Admin.

{} 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->wc_setup_new_onboarding();

Changelog

Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard::wc_setup_new_onboarding() WC 5.9.0

<?php
public function wc_setup_new_onboarding() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	?>
		<div class="wc-setup-step__new_onboarding-wrapper">
			<p class="wc-setup-step__new_onboarding-welcome"><?php esc_html_e( 'Welcome to', 'woocommerce' ); ?></p>
			<h1 class="wc-logo"><a href="https://woocommerce.com/"><img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/woocommerce_logo.png" alt="<?php esc_attr_e( 'WooCommerce', 'woocommerce' ); ?>" /></a></h1>
			<p><?php esc_html_e( 'Get your store up and running more quickly with our new and improved setup experience', 'woocommerce' ); ?></p>

			<form method="post" class="activate-new-onboarding">
				<?php wp_nonce_field( 'wc-setup' ); ?>
				<input type="hidden" name="save_step" value="new_onboarding" />
				<p class="wc-setup-actions step">
					<button class="button-primary button button-large" value="<?php esc_attr_e( 'Yes please', 'woocommerce' ); ?>" name="save_step"><?php esc_html_e( 'Yes please', 'woocommerce' ); ?></button>
				</p>
			</form>
			<?php if ( ! $this->is_wc_admin_active() ) : ?>
				<p class="wc-setup-step__new_onboarding-plugin-info"><?php esc_html_e( 'The "WooCommerce Admin" plugin will be installed and activated', 'woocommerce' ); ?></p>
			<?php endif; ?>
		</div>
	<?php
}