Powdered Bread.com

Basic Print

Basic print function in php

<?php

$user = wp_get_current_user();
$user_id = get_current_user_id();

if ( is_user_logged_in() )
    {print "User is logged in";}
else
    {print "User is not logged in";};

print "<br>";  //print new line
print $user->display_name . "<br>"; // php print uses . instead of + to add to print
print $user_id;
?>