Answers for "Get current user name and email in wordpress"

PHP
0

wordpress get username

$current_user = wp_get_current_user();
echo($current_user->user_login);
Posted by: Guest on January-29-2021
0

get current user email wordpress

global $current_user;
get_currentuserinfo();
echo $current_user->user_email;
Posted by: Guest on June-17-2021

Code answers related to "Get current user name and email in wordpress"

Browse Popular Code Answers by Language