Top Left Text cha

Website Development Services

Get User Variables

global $current_user;

$username = $current_user->user_login;
$email = $current_user->user_email;
$firstName = $current_user->user_firstname;
$lastName = $current_user->user_lastname;
$displayName = $current_user->display_name;
$userID = $current_user->ID;


Here's the Full List

Get Post Variables

global $post;

$postTitle = $post->post_title;
$postID = $post->ID;

etc.

Here's the full list

Add comment


Security code
Refresh

  • No comments found

Leave your comments

Post comment as a guest

0
Your comments are subjected to administrator's moderation.
X