Answers for "wordpress display name publicly as"

PHP
0

how to get display name in wordpress

<?php 
	$user_info = get_userdata(1);
	echo 'Username: ' . $user_info->user_login . "\n";
	echo 'User roles: ' . implode(', ', $user_info->roles) . "\n";
	echo 'User ID: ' . $user_info->ID . "\n";
?>
Posted by: Guest on June-30-2020

Code answers related to "wordpress display name publicly as"

Browse Popular Code Answers by Language