Warning: This method has been deprecated.
WC_Admin_Setup_Wizard::get_current_user_email()
Helper method to retrieve the current user’s email address.
Description Description
Return Return
(string) Email address
Source Source
File: includes/admin/class-wc-admin-setup-wizard.php
protected function get_current_user_email() { $current_user = wp_get_current_user(); $user_email = $current_user->user_email; return $user_email; }
Changelog Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |