Capture Username
-
Hi all,
I am trying to capture the username once login by
<?php global $userdata;
get_currentuserinfo();echo(‘Username: ‘ . $userdata->user_login . “\n”);
echo(‘User level: ‘ . $userdata->user_level . “\n”);
echo(‘User ID: ‘ . $userdata->ID . “\n”);
?>But on exceuting, i am getting Fatal error: Call to undefined function: get_currentuserinfo() in /home/eworl2/public_html/irland/getloginir.php on line 10
What am i doing wrong ir what am i missing?
Regards.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Capture Username’ is closed to new replies.