Once you get the id of the user in members variable. You then have to use get_post_meta
to get the custom data of members because ACF uses meta boxes. After that merge the data with the members variable and then pass the variable to WP_REST_Response class. I would have commented but that reputation, so posted answer, Hope you don’t mind and hope it helps.
Related Posts:
- Wp_User_Query not sorting by meta key
- WP_User_Query with combined meta query – not working?
- ACF Upload Image in front-end with custom form
- WP User Query fails when searching meta queries and search columns
- WP_User_Query pulling ACF to loop
- Rest API code to get ID of current user not working: get_current_user_id() gives 0
- Display the line breaks in user bio without using html
- Get UserInfo from WordPress
- REST_query_vars for users
- Sort users by custom user meta value
- user_login vs. user_nicename
- Automatically delete inactive users after 2 months
- Retrieve all users from wordpress database via REST/JSON API
- How to order users alphabetically by their last name?
- Getting all user metadata from user
- Extending WP_User class and using this sub-class during the whole lifecycle
- Basic auth WordPress REST API dilemma
- How to use hyperdb to separate and share a user dataset between wordpress installs?
- \WP_User Object | What’s the Difference Between {caps} and {allcaps}?
- pre_user_query meta_query admin user list
- Show Biographical Info while creating new user
- include user profiles in search results?
- Plugin that would allow WordPress Authors to “follow” other Authors and query “Activity Info” from that
- User profile custom field
- Front end user meta options for users
- get_userdata by username
- Hide a user from WordPress
- Drop down list in user profile page
- Check for user meta data at Login
- Searchable meta value in user.php
- Delete user from frontend
- Memory usage for scalable usermeta queries
- WordPress User getting added with id of 0
- Log all users out of all locations after 24 hours
- How to set show admin bar front to true for all users?
- Add user data to table when user is created?
- User Last Login Sort Column
- WordPress User Meta & ChromePHP or other way to debug/view php variables
- Use wp_update_user to update custom column in wp_users table
- Display users in order by an “order” custom meta field
- mysql query two database tables, users and usermeta and sort by custom meta int value
- Updating wp_user_level on user update
- Should I encrypt the response that triggers an Ajax action? Is nonce sufficient?
- How can I authenticate user credentials against a WordPress instance?
- How can I attach a user to another user with user meta
- List users by meta_key and meta_value
- users and usermeta table
- WordPress SQL Issue not returning correct reselts
- List Users alphabetically with heading
- How to pull all the contributer users records and order by Designation (which is users meta data)?
- cannot get user_registered date from get_user_meta
- No user found when using REST API
- is_user_logged_in() throwing undefined function error
- How can I prevent certain custom roles from seeing other custom roles on the user list page?
- WordPress REST Api: update user
- “the_author_meta(‘url’)” not working inside “href”
- REST API: wp_get_current_user not working on second call
- Reduce number of SQL queries inside WP_Query loop to fetch author data
- Add custom user meta data
- How to add an attribute to a user?
- SELECT from wp_users, get Displayname too
- WP_User_Query not searching
- how do I add role and capability after I create a new user
- User Meta stuff
- Advanced Custom Fields Plugin: how would I get an image src path uploaded from User Profile?
- User with same Mail but a different additional info(like domain)
- User can’t search himself on rest api
- Need to use WordPress page as authentication for different service
- How do I update user email from frontend input field?
- My custom user metadata is only active for only admin but i want it to be active on all users especially customers
- How to get image path from id using SQL
- Update user role for expired membership
- SQL to set Display Name to First Name + Last Name
- Cannot update newly added User field using wp_update_user
- how to retrieve user via rest api using custom meta and/or email
- How can I display Only the first Array/Object?
- How can i add user display name drop down menu in frontend?
- How to prevent multiple user accounts with the same meta field?
- How to Moderate Edits to User Profiles?
- Safely changing UserID’s, re-using deleted UserID’s and automatically using deleted userID’s instead of an increment
- Store extra user values permanently
- Add method for tracking who referred new users
- Extend WP_User_Query or WP_User to return all custom fields?
- Username has been exposed
- User management missing after migration to new host
- Creating Custom user type just like custom post
- Validate user meta and redirect
- Let admin users edit member profiles from front end
- Does WordPress Need BuddyPress to Handle Large Amounts of Users?
- Using and saving custom dropdown boxes on user profiles
- Store subscription details for users in WordPress
- How to add custom detail page for a Subscriber at Admin Panel
- Extend user search in the Wp backend area on the users.php page to allow for searching by email domain and role from the “users search” input box
- Show only users with the same role in Dashboard user list
- Add custom input field in new user page
- WordPress – Security Question at Login from User’s Meta Data
- MySQL query to list users who never signed in
- Recognize logged WP user in existing REST API
- Sorting Users page admin column with ACF field
- Can’t retrieve user email address with REST API