Perhaps you could either use admin ajax or the WP REST API to send a request to the server for the user meta update.
If you have a look at the WP documentation (links above) or similar questions here on WPSE, you can find examples on how to do it.
- Update user meta with ajax https://wordpress.stackexchange.com/search?q=Update+user+meta+ajax
- Update user meta with rest api https://wordpress.stackexchange.com/search?q=Update+user+meta+via+REST+API%3F
Related Posts:
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- How to pre populate a form field with a link of a current user’s author profile?
- Submitting a form, using Ajax, to run a SQL Select query based on user input from the form
- Testing a Form’s Zipcode Field with Regular Expressions to Determine WordPress Page Behaviour
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Cascading dropdown select search based on Parent Page & Child Page
- Most efficient way to add javascript file to specific post and/or pages?
- Pass media upload value to input field
- How to insert PHP code in a WordPress Post
- Creating wordpress user registration form
- Where exactly do I write define( ‘WP_DEBUG’, true ) in wp-config file
- JavaScript, best way to use data from the loop
- Ajax form submit within a Post Metabox
- How can I add tinymce editor in WordPress with jQuery?
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- Slide in Panel WordPress Post
- Upload Image in a WordPress page using PHP
- Using shipped version of jquery
- Bridging TinyMCE js and WordPress PHP?
- Trying to implement Ajax comments in WordPress, getting WP error
- class click counter save number
- My form action url is being prepended with a directory that does not exists
- WP functions in .js
- Ajax – Call to undefined function get_option()
- Populate dropdown with Child Pages based on Parent Page chosen
- How to prevent XSS alter custom global javascript object & methods in WordPress
- JS file work only in index page
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Integrating PHP into Javascript to display map markers with Google API – problem with wp_localize
- How to register javascript variables in wp_localize_script?
- Post + form + action + results on the same page
- Why Won’t My Inputs in a form with a Get method work together?
- How to pass Select value from Javascript to PHP to generate select option on change
- How to get the value of input hidden html from text editor to custom page template?
- How does wp_enqueue_scripts work?
- Contact form won’t submit
- WordPress Scripts Being Loaded in Footer
- Is the wp_enqueue method efficient?
- “operation successful” message
- User register hook is not working in woocomerce register form
- Add Codepen animation as Preloader to WordPress
- Making an AJAX call to refresh a table
- load ajax using admin-ajax.php
- How to send form data from WordPress (Meta Box) to an OData service?
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Form Submission Not Working In Custom Theme
- Post repeated when opening in overlay, how do I solve this? [closed]
- Why does my user not get added to the database on custom registration?
- Make a page (url) not cacheable [closed]
- Is it possible to isolate and use WordPress functions outside of wordpress
- Load Javascript for a widget WordPress
- security concerns if using html data-* attribute for l10n?
- duplicate posts with ajax load more wordpress
- How to populate a Gutenberg select field SelectControl with option value from PHP array
- Send an e-mail on address with the link with disliked post
- How to extend SelectControl with data from my theme
- $_POST returning empty values
- Search bar for wp menu
- Show next image in array if page is revisited by same logged user
- Executing php on button press
- How to send custom form submissions to WordPress Database?
- Fetch Data from an external MSSQL Database in a Managed WP hosting
- Using Google Analytics in an enqueued JS file
- I want it to detect the duplicate comment and give a warning on the same page
- How do I disable cache for a certain page?
- How To Get HTML Eelement From Another Page
- Conditional Banners
- Update $wpdb query with AJAX
- $.ajax results in 403 forbidden
- AJAX to add to cart multiple products woocommerce
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- sessionStorage saves input value in browser but it is not loaded in the form field
- Collapsible menu on post sidebar only expands and does not collapse
- Replacing entire tag with shortcode – JavaScript [duplicate]
- How do I stop my form from adding code to current page URL instead of re-directing. Been stuck for days
- How do I make comment-reply-button with that takes to comment reply form on click
- ajax polling with admin-ajax.php
- How to load WP_Editor JS files manually (with AJAX)?
- A javascript function that simply runs a php function on the plugin
- Display text of price (minus 20%) on every product page in a sentence.
- Where to find the html for WordPress site? [closed]
- Post from front end form to post_meta
- 500 (Internal Server Error) of external php file
- Add title and caption to thumbnail image on mouseover
- Problems with plugin that fetches data from database with ajax
- Dynamic Gallery
- Using Nonce for my Form
- Execute PHP code in Javascript onclick
- Cannot get custom javascript to execute on page
- How to pass username into form that sends data to database
- How to create and add js and css file when server is not on my PC?
- Object of class WP_Post could not be converted to string while trying to console.log wp_get_nav_menu_items
- Check radio get value to array
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- Set variable in javascript and using in my shortcode
- Import js variables loaded via wp_localize_script() into js module without global scope connection
- Remove Woocommerce product from cart with ajax/fetch
- WooCommerce Modal Fly cart on add to cart – With AJAX
- hiddenQuestions.find is not a function
- get_post_meta returns on side but it doesn’t return on bottom of admin page