Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress get user data from email

get_user_by( string $field, int|string $value )

Example:
$user = get_user_by( 'email', 'user@example.com' );
echo 'User is ' . $user->first_name . ' ' . $user->last_name;
Comment

PREVIOUS NEXT
Code Example
Php :: call php function in js 
Php :: laravel return view with multiple variable 
Php :: laravel database seeder medium 
Php :: reCAPTCHA v3 PHP 
Php :: php remove control characters from string 
Php :: Best debugging tools for php 
Php :: how to create access token in laravel 
Php :: how to get public folder path in laravel 
Php :: merge array 
Php :: woocommerce get orders by user id 
Php :: laravel download file from s3 
Php :: error_log wordpress 
Php :: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 
Php :: user location using php 
Php :: guzzle get request 
Php :: laravel validate date 
Php :: Syntax error or access violation: 1071 La clé est trop longue. Longueur maximale: 1000" 
Php :: send var in header php 
Php :: laravel route contains particular segment 
Php :: Laravel stop on first validation error 
Php :: php filter array 
Php :: add json extenstion php 
Php :: redirect stderr from echo 
Php :: laravel restrict route methods 
Php :: php for next loop step 
Php :: specification migration laravel 
Php :: firebase php 
Php :: cookies php syntax 
Php :: get last element of array php 
Php :: operators in php 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =