wp get logged in user id
<?php
$user_id = get_current_user_id();
?>
wp get logged in user id
<?php
$user_id = get_current_user_id();
?>
get current user email wordpress
global $current_user;
get_currentuserinfo();
echo $current_user->user_email;
wordpress get user data from email
get_user_by( string $field, int|string $value )
Example:
$user = get_user_by( 'email', '[email protected]' );
echo 'User is ' . $user->first_name . ' ' . $user->last_name;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us