$blogusers = get_users('orderby=display_name&order=ASC'); $users = array(); foreach($blogusers as $user){ $users[] = array( "ID"=>$user->ID, "user_login"=>$user->user_login, //"user_pass"=>$user->user_pass, "user_nicename"=>$user->user_nicename, "user_email"=>$user->user_email, "user_registered"=>$user->user_registered, "display_name"=>$user->display_name ); } echo json_encode($users);
Delete wp user
echo wp_delete_user($id);
No comments:
Post a Comment