Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to get display name in wordpress

<?php 
	$user_info = get_userdata(1);
	echo 'Username: ' . $user_info->user_login . "
";
	echo 'User roles: ' . implode(', ', $user_info->roles) . "
";
	echo 'User ID: ' . $user_info->ID . "
";
?>
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #display #wordpress
ADD COMMENT
Topic
Name
5+4 =