Get a list of all available fields in the User Profile

The second parameter in get_user_meta is optional, so you can retrieve all user meta like this (code tested quickly in my install):

$cu = get_current_user_id ();
$um = get_user_meta ($cu);
var_dump ($um);

This would also include meta fields that are hidden on the user profile page.

Leave a Comment