WC_Admin_Setup_Wizard_Tracking::get_current_step()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.

Get the name of the current step.

Method of the class: WC_Admin_Setup_Wizard_Tracking{}

No Hooks.

Return

String.

Usage

$WC_Admin_Setup_Wizard_Tracking = new WC_Admin_Setup_Wizard_Tracking();
$WC_Admin_Setup_Wizard_Tracking->get_current_step();

Changelog

Deprecated since 4.6.0

WC_Admin_Setup_Wizard_Tracking::get_current_step() code WC 8.7.0

public function get_current_step() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', __( 'Onboarding is maintained in WooCommerce Admin.', 'woocommerce' ) );
	return isset( $_GET['step'] ) ? sanitize_key( $_GET['step'] ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
}