Search
 
SCRIPT & CODE EXAMPLE
 

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 . "
";
?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel pagination number of items 
Php :: array_column in php 
Php :: convert std to array php 
Php :: laravel apiresource 
Php :: reply to wp_mail 
Php :: Remove last symbol from string 
Php :: php close unclosed HTML Tags 
Php :: Php get all timezone 
Php :: php array subset by slicing 
Php :: in_array validation laravel 
Php :: php filter array 
Php :: php remove non utf-8 characters 
Php :: grouping routes based on controller 
Php :: pass image path in laravel blade 
Php :: spatie laravel activity log 
Php :: how to get attachments to emails php 
Php :: connect sql server php 
Php :: check if array is empty php 
Php :: how to include file in php 
Php :: make exception laravel 
Php :: factory laravel laravel 8 tinker 
Php :: php send http request 
Php :: wordpress admin redirecting to http 
Php :: date_default_timezone_set php bangladesh 
Php :: php named parameters 
Php :: php arrow function 
Php :: php foreach array pop 
Php :: wp php category page count products 
Php :: laravel middleware in constructor 
Php :: get data from another table laravel 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =