Skip to content

Instantly share code, notes, and snippets.

@mavieth
Created December 30, 2015 19:37
Show Gist options
  • Select an option

  • Save mavieth/240609e1ce9963999a67 to your computer and use it in GitHub Desktop.

Select an option

Save mavieth/240609e1ce9963999a67 to your computer and use it in GitHub Desktop.
$blogusers = get_general_users();
$arr = array();
foreach ( $blogusers as $user ) {
$meta = get_user_meta($user->ID);
$link = get_edit_user_link( $user->ID);
$editUserLink = '<a href=' .$link. '>Edit User Profile</a>';
$profileArray =array(
"Display Name" => $user->display_name,
"Email Address" => $user->user_email,
"User Registered Date" => $user->user_registered,
"Trainer ID" => $user->trainer_id,
"Edit User" => $editUserLink
);
array_push($arr, $profileArray);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment