WC_Admin_Setup_Wizard_Tracking::get_current_steppublicWC 1.0

Deprecated since 4.6.0. It is no longer supported and may 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.

Returns

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 9.9.4

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
}