Here we use the get_currentuserinfo(); to populate global variables describing the current user. These fields could be used to pre-fill or qualify/verify the data submitted through the upload form…
Username:
User email:
User level:
User first name:
User last name:
User display name:
User ID: 0
Here we test a php dat call:
The number of days this month is
31
Another way to granulate access?
if (is_user_logged_in()) {
// Do stuff
} else {
// Do other stuff
}