I'm trying to get the current logged in persons user name into a variable.. does anyone know how I would do that?
I'm trying to get the current logged in persons user name into a variable.. does anyone know how I would do that?
Just scope $user_login to global:
<?php global $user_login; ?>
You'll then have access to it.
This topic has been closed to new replies.