Search
 
SCRIPT & CODE EXAMPLE
 

PHP

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

Obtener rol de usuario registrado en 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 return json header json 
Php :: php utf8_decode 
Php :: php increment letter 
Php :: the action you have requested is not allowed. in codeigniter 
Php :: permissions on ssh 
Php :: absolute path php 
Php :: phpmyadmin first login 
Php :: how to check if there is an authenticated user laravel 
Php :: update sql php 
Php :: laravel where first 
Php :: request get query string laravel 
Php :: factory laravel tinker 
Php :: laravel route view 
Php :: how to add recaptcha to woocommerce register php 
Php :: optimize clear laravel not working 
Php :: deactivate plugin wp cli 
Php :: laravel get subdomain 
Php :: make model with migration laravel 
Php :: make select element readonly 
Php :: carbon months between dates 
Php :: json stringify php decode 
Php :: how to know the path of php in linux 
Php :: how to check if user is logged in wordpress 
Php :: how to use multiple permission in blade 
Php :: enum in laravel migration 
Php :: check if array value exists in another array php 
Php :: remove notices php 
Php :: excel extract date from dd mm yyyy laravel blade 
Php :: carbon diff 
Php :: mpdf output 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =