Answers for "Obtener datos de usuario registrado en WordPress"

PHP
0

Obtener datos de usuario registrado en WordPress

<?php $user_info = get_userdata(1);
      $username = $user_info->user_login;
      $first_name = $user_info->first_name;
      $last_name = $user_info->last_name;
      echo "$first_name $last_name logs into her WordPress site with the user name of $username.";
?>
Posted by: Guest on August-06-2021
0

Obtener rol de usuario registrado en 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 August-06-2021

Code answers related to "Obtener datos de usuario registrado en WordPress"

Browse Popular Code Answers by Language