Search
 
SCRIPT & CODE EXAMPLE
 

PHP

get current user first and last name wordpress

    $current_user = wp_get_current_user();
    
    echo 'Username: ' . $current_user->user_login . '<br />';
    echo 'User email: ' . $current_user->user_email . '<br />';
    echo 'User first name: ' . $current_user->user_firstname . '<br />';
    echo 'User last name: ' . $current_user->user_lastname . '<br />';
    echo 'User display name: ' . $current_user->display_name . '<br />';
    echo 'User ID: ' . $current_user->ID . '<br />';
Comment

PREVIOUS NEXT
Code Example
Php :: php recursively delete directory 
Php :: check if user is on mobile php 
Php :: php only my ip 
Php :: php get current domain 
Php :: create folder php 
Php :: php explode new line 
Php :: php hide notice 
Php :: destroy a session in laravel 
Php :: laravel get url segment 
Php :: php time script 
Php :: php strip out special characters 
Php :: store file into specific directory laravel using storage facade 
Php :: switching inter php 
Php :: php if url contains 
Php :: get random posts wordpress 
Php :: laravel/ui v3.0.0 requires php ^7.3 - your php version (8.0.2) does not satisfy that requirement. 
Php :: wordpress wp_query orderby random 
Php :: woocommerce get my account url 
Php :: array_sum in multidimensional array php 
Php :: laravel request all delete _token 
Php :: php get referral 
Php :: composer error installation 
Php :: wordpress disallow_file_edit 
Php :: laravel module create controller 
Php :: php string to array 
Php :: laravel make trait command 
Php :: error log array 
Php :: write if and else in one line php 
Php :: get data in orderby in laravel 
Php :: base64 encode username password php example 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =