WC_Admin_Setup_Wizard_Tracking::get_current_step()
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() WC Admin Setup Wizard Tracking::get current step code WC 7.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 }