Answers for "wordpress current user name logged in"

PHP
3

if user logged in wordpress

if ( is_user_logged_in() ) {
   // your code for logged in user 
} else {
   // your code for logged out user 
}
Posted by: Guest on September-11-2020
1

wordpress get username

$current_user = wp_get_current_user();
echo($current_user->user_login);
Posted by: Guest on January-29-2021

Code answers related to "wordpress current user name logged in"

Browse Popular Code Answers by Language