I am trying to create a table that is populated by the users: name, points, training completed. All of this data is in the users admin section. Is there a plug in or code I can look at to understand how to create this?
EXAMPLE:
I am trying to create a table that is populated by the users: name, points, training completed. All of this data is in the users admin section. Is there a plug in or code I can look at to understand how to create this?
EXAMPLE:
See how the data is stored in the database in the table "wp_usermeta"
Find the storage keys for "points", "training completed"
Then using the function
https://codex.wordpress.org/Function_Reference/get_users
$users = get_users( $args );
foreach ( $users as $user ):
echo $user->ID;
echo $user->display_name ;
echo get_user_meta( $user->ID, 'KEY_POINTS', $single = true);
echo get_user_meta( $user->ID, 'KEY_TRAINING_COMPLETE', $single = true);
endforeach;