Tutorial by Examples

Getting all the information of current user in wordpress using the predefined function wp_get_current_user(); <?php $current_user = wp_get_current_user(); echo "Username :".$current_user->user_login; echo "Username :".$current_user-&g...
$user = wp_get_current_user(); foreach($user->data as $key=>$user_data){ if($key == 'user_pass' || $key == 'user_activation_key' || $key=='user_status'){} else{ $nice_key = ucfirst(str_replace('_', ' ', $key)); if($key == 'user_registered'){ $u...

Page 1 of 1