WordPress at Your Fingertips
function is not described

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

Final step.

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

Changelog

Deprecated 4.6.0

Code of WC_Admin_Setup_Wizard::wc_setup_ready() WC 5.9.0

<?php
public function wc_setup_ready() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	// We've made it! Don't prompt the user to run the wizard again.
	WC_Admin_Notices::remove_notice( 'install', true );

	$user_email   = $this->get_current_user_email();
	$docs_url     = 'https://docs.woocommerce.com/documentation/plugins/woocommerce/getting-started/?utm_source=setupwizard&utm_medium=product&utm_content=docs&utm_campaign=woocommerceplugin';
	$help_text    = sprintf(
		/* translators: %1$s: link to docs */
		__( 'Visit WooCommerce.com to learn more about <a href="%1$s" target="_blank">getting started</a>.', 'woocommerce' ),
		$docs_url
	);
	?>
	<h1><?php esc_html_e( "You're ready to start selling!", 'woocommerce' ); ?></h1>

	<div class="woocommerce-message woocommerce-newsletter">
		<p><?php esc_html_e( "We're here for you — get tips, product updates, and inspiration straight to your mailbox.", 'woocommerce' ); ?></p>
		<form action="//woocommerce.us8.list-manage.com/subscribe/post?u=2c1434dc56f9506bf3c3ecd21&amp;id=13860df971&amp;SIGNUPPAGE=plugin" method="post" target="_blank" novalidate>
			<div class="newsletter-form-container">
				<input
					class="newsletter-form-email"
					type="email"
					value="<?php echo esc_attr( $user_email ); ?>"
					name="EMAIL"
					placeholder="<?php esc_attr_e( 'Email address', 'woocommerce' ); ?>"
					required
				>
				<p class="wc-setup-actions step newsletter-form-button-container">
					<button
						type="submit"
						value="<?php esc_attr_e( 'Yes please!', 'woocommerce' ); ?>"
						name="subscribe"
						id="mc-embedded-subscribe"
						class="button-primary button newsletter-form-button"
					><?php esc_html_e( 'Yes please!', 'woocommerce' ); ?></button>
				</p>
			</div>
		</form>
	</div>

	<ul class="wc-wizard-next-steps">
		<li class="wc-wizard-next-step-item">
			<div class="wc-wizard-next-step-description">
				<p class="next-step-heading"><?php esc_html_e( 'Next step', 'woocommerce' ); ?></p>
				<h3 class="next-step-description"><?php esc_html_e( 'Create some products', 'woocommerce' ); ?></h3>
				<p class="next-step-extra-info"><?php esc_html_e( "You're ready to add products to your store.", 'woocommerce' ); ?></p>
			</div>
			<div class="wc-wizard-next-step-action">
				<p class="wc-setup-actions step">
					<a class="button button-primary button-large" href="<?php echo esc_url( admin_url( 'post-new.php?post_type=product&tutorial=true' ) ); ?>">
						<?php esc_html_e( 'Create a product', 'woocommerce' ); ?>
					</a>
				</p>
			</div>
		</li>
		<li class="wc-wizard-next-step-item">
			<div class="wc-wizard-next-step-description">
				<p class="next-step-heading"><?php esc_html_e( 'Have an existing store?', 'woocommerce' ); ?></p>
				<h3 class="next-step-description"><?php esc_html_e( 'Import products', 'woocommerce' ); ?></h3>
				<p class="next-step-extra-info"><?php esc_html_e( 'Transfer existing products to your new store — just import a CSV file.', 'woocommerce' ); ?></p>
			</div>
			<div class="wc-wizard-next-step-action">
				<p class="wc-setup-actions step">
					<a class="button button-large" href="<?php echo esc_url( admin_url( 'edit.php?post_type=product&page=product_importer' ) ); ?>">
						<?php esc_html_e( 'Import products', 'woocommerce' ); ?>
					</a>
				</p>
			</div>
		</li>
		<li class="wc-wizard-additional-steps">
			<div class="wc-wizard-next-step-description">
				<p class="next-step-heading"><?php esc_html_e( 'You can also:', 'woocommerce' ); ?></p>
			</div>
			<div class="wc-wizard-next-step-action">
				<p class="wc-setup-actions step">
					<a class="button button-large" href="<?php echo esc_url( admin_url() ); ?>">
						<?php esc_html_e( 'Visit Dashboard', 'woocommerce' ); ?>
					</a>
					<a class="button button-large" href="<?php echo esc_url( admin_url( 'admin.php?page=wc-settings' ) ); ?>">
						<?php esc_html_e( 'Review Settings', 'woocommerce' ); ?>
					</a>
					<a class="button button-large" href="<?php echo esc_url( add_query_arg( array( 'autofocus' => array( 'panel' => 'woocommerce' ), 'url' => wc_get_page_permalink( 'shop' ) ), admin_url( 'customize.php' ) ) ); ?>">
						<?php esc_html_e( 'View &amp; Customize', 'woocommerce' ); ?>
					</a>
				</p>
			</div>
		</li>
	</ul>
	<p class="next-steps-help-text"><?php echo wp_kses_post( $help_text ); ?></p>
	<?php
}