Hello

get_currentuserinfo();

Username: 
User email: 
User first name: 
User last name: 
User display name: 
User ID: 0
User promoter: 
User club: 
;

Here is yet another example using logical conditionals to restrict access to pages:

Go away!

if_user_logged_in()

if_user_logged_in() - next step to booking form

"if you would like to book a northern line band please register."

By registering you can apply to book northern line artists.

Display different output depending on whether the user is logged in or not. Welcome, visitor! From your functions file, this code displays a personal message for logged in users.