how to fetch all user data form user in wp

Solutions on MaxInterview for how to fetch all user data form user in wp by the best coders in the world

showing results for - "how to fetch all user data form user in wp"
Camilo
17 Nov 2018
1<?php
2$users = get_users( array( 'fields' => array( 'ID' ) ) );
3 foreach($users as $user){
4	   echo"<pre>";
5       print_r(get_user_meta ( $user->ID));
6		echo"</pre>;
7   }
8add_shortcode('userget','getuser');
9?>