WC_Admin_Setup_Wizard::get_current_user_emailprotectedWC 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.

Helper method to retrieve the current user's email address.

Method of the class: WC_Admin_Setup_Wizard{}

No Hooks.

Returns

String. Email address

Usage

// protected - for code of main (parent) or child class
$result = $this->get_current_user_email();

Changelog

Deprecated since 4.6.0

WC_Admin_Setup_Wizard::get_current_user_email() code WC 10.3.6

protected function get_current_user_email() {
	_deprecated_function( __CLASS__ . '::' . __FUNCTION__, '4.6.0', 'Onboarding is maintained in WooCommerce Admin.' );
	$current_user = wp_get_current_user();
	$user_email   = $current_user->user_email;

	return $user_email;
}