WordPress global variables can be used within content blocks, for example,

global $user_login;
global $user_email;
echo “$user_login, you email is: $user_email”;
would output the username and email of the current logged in user, e.g., John, your email is john@youremail.com.

More about global variables: here

Filed under: GCB Advanced Usage

Like this post? Subscribe to my RSS feed and get loads more!