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 :: create newfilter wordpress 
Php :: php send response without quitting 
Php :: How to check if fwrite failed php 
Php :: Laravel, return view with Request::old 
Php :: execcommand insert video 
Php :: add element to this array 
Php :: how to convert php code to html 
Php :: Detect Browsers Windows|Linux|Mac|Mobile PHP Code 
Php :: WP Admin Bar Dev Links 
Php :: image_store 
Php :: Removing the additional information tab using PHP code snippet 
Php :: calculate age from date of birth php 
Php :: php pdo connect to database 
Php :: PHP readfile() Function 
Php :: remove public/index.php from laravel url 
Php :: laravel get referer without host 
Php :: add document by api php 
Php :: php tutorials account ledger 
Php :: what is the fee/commission charge for payoneer 
Php :: how to link a external modules using href in php 
Php :: php discord webhook sender 
Php :: php get array key by value 
Php :: Laravel 9.x Terminal can not migrate table 
Php :: Argument 1 passed to IlluminateDatabaseGrammar::parameterize() 
Php :: Drupal 9 loop term objects to retrieve term data (id, name, uuid) 
Php :: pcntl php 
Php :: https://stackoverflow.com/questions/58589741/angular-8-hide-divs-and-show-div-on-button-click 
Php :: What is the method of querying from two tables with a condition in Laravel 
Php :: send email accent subject php 
Php :: nl_langinfo — Query language and locale information 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =