This is a very high-level answer, but should get you in the right direction.
First, you probably need to get all of these users. You can do that with get_users()
, which will then return an array of all users.
Next loop through that array and pass each user’s ID into get_user_meta()
, if that’s where you’re storing these various fields. You can either pass in a key or nothing to return all users meta associated with that user.
If you’re trying to get data that’s held by WP_User, you can use get_userdata()
for each user.
I hope that helps? Most logical location to store this stuff is in user meta, in my opinion, and so update_user_meta()
will be useful in actually saving these data to users to begin with.
Related Posts:
- Plugin Form Submission Best Practice
- $_POST form request with admin-post
- Handling results from data hooked into admin_post
- What is the real intention for admin-post.php?
- How to check username/password without signing in the user
- Add Custom User Capabilities Before or After the Custom User Role has Been Added?
- What is the recommended way to create plugin administration forms?
- WordPress REST API call generates nonce twice on every call
- Using AJAX in a plugin to submit form – REALLY confused
- Post from front-end with post types, categories and taxonomies
- Front-End Form Submission in Shortcode
- Check spam in custom form – akismet
- Custom user profile, registration, login page with theme
- How to use WP default post list tables in a plugin?
- Use a PHP file as action for a form in a WordPress plugin, what’s the correct way?
- How to add quick edit and bulk edit fields to users admin section
- Front-End Interfaces Without Shortcodes
- Best Practices for Creating and Handling Forms with Plugins?
- Generating User(s) with Settings API
- WordPress admin deleted user details not removed in database. How to delete WordPress Users from Database
- Print WordPress username id inside JavaScript
- Function Get User Object By Username?
- Check if someone is editing a post (this content is currently locked)
- How to sanitize user input?
- Modify users.php page to create page/post on button clicked
- Subscribe to author?
- How to filter users list on user_status field with get_users()
- Frontend language per user
- WooCommerce registration password field not displaying
- wordpress plugin php file processing form
- How to add custom fields to the all users page
- New User Form – Custom Menu Page
- Error on inserting a form value to database
- Display custom fields in frontside user profile
- Multiple options pages validation for a plugin
- Form doesnt save to database
- Create custom HTML/JS app inside page
- Plugin Development for registered users
- Is there documentation reference for forms in menu and setting pages?
- Input in plugin widget does not allow spaces
- global $current_user not current user
- Display list of uploaded images, filtered by user under a specific user group
- Avoid updating post when sending POST or GET request to post.php
- What is the proper way to get logged in user id in a plugin?
- admin_post equivalent for guest user?
- How to build a fool proof AdSense revenue sharing model?
- Hide custom post type by user roles
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- How can I add a simple custom field to my plugin?
- Run JavaScript validation script on form submit in plugin
- First and last name fields not filled when using wp_insert_user
- I am unable to save my data from a form
- Wp-admin Custom User Management
- The Correct Way to Use Nonce Field without Settings API
- How to add search form in main page body?
- get author of published post
- How to get custom post_author?
- Associate multiple email addresses with the same user account, so they can log in with either
- How to make and save custom form in custom plugin page?
- Catching Form Submission in WordPress Admin Panel
- Form using admin-post.php gives 404 after submission
- Update a user profile via frontend
- Best practice for Designing a Plugin with this scenario
- Adding another field to user table
- Submit form to a different PHP file in the same plugin folder
- A function that will remove HTML and tags from a string?
- Plugin Form Submitting to admin-ajax.php instead of admin-post.php
- Form submission to another page returning 404 error [duplicate]
- how to get the top 10 popular blogs
- How can I change my assigned user role in WordPress 3.5.1?
- How to relate the Category to user?
- Lead form that submits to 2 external APIs
- WordPress: redirecting to the form page after form submission to admin-post.php
- Adding a dropdown on the user admin
- How to create a custom post-new.php page for plugin , no wp menu
- Allowing duplicating users with same user_login and user_email
- Information and Page from WordPress Plugin
- Why User_login key doesn’t work with wp_update_user()
- How to grab data after wp user search is complete
- Why is that only the first row getting inserted into Mysql table when i import csv file on backend custom plugin?
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- How to prevent users from deleting their accounts?
- Use admin-post to submit form data to external database
- How to Maintain url on form submit
- User Registration Moderate
- form does not generate $_POST request
- Upgrade routine: Interaction with user confirmation
- Acessing WP functions in form submission handler
- Form and database, plugin development
- Can I use a hook other than ‘init’ to handle form submissions?
- wp_mail links are dead
- Best way to handle a form post in plugin
- Multiple Users Logged In Causing Incorrect Account Returned
- Tracing dashboard publish settings from input form in WordPress
- Post data in wp-admin to external database
- Multi-part form and wp_redirect()
- first_name property missing inside register_user action hook
- Page reload occurs before request finishes
- user can login from single account detail from multiple locations(computer) at the same time [closed]
- Create Unique and Customized User ID for Website Members in WordPress