Well, my code seems to be ok.
I just needed to remove the “disabled” state of the field that prevented the update metadata for a completely unknown reason to me.
Merci Sim 😉
Replaced this
<input type="text" id="union_id_field" name="union_id_field" value="<?php echo esc_attr( $value ); ?>" disabled>
By this
<input type="text" id="union_id_field" name="union_id_field" value="<?php echo esc_attr( $value ); ?>">
Related Posts:
- Long Polling: Stuck in while loop
- How to update Comment post meta through an Ajax call
- Update attachment metadata fails
- Attach time/date stamp on add_post_meta
- bulk update meta value with ajax
- Update status, meta while inside a post using AJAX button
- Filter images from media library by guid meta field
- Want to send ajax request in wordpress to a custom file in plugin
- delete post meta data in array WordPress
- Allow guest to update custom post met using ajax
- delete attachment for one post without deleting actual attachment post
- jQuery: Performing synchronous AJAX requests
- Best way to end WordPress ajax request and why?
- Why use wp_send_json() over echo json_encode()?
- How to pass data parameter to ajax action function handler
- post formats – how to switch meta boxes when changing format?
- Multiple ajax nonce requests
- Update user meta using with ajax
- WordPress function that makes HTML safe to be sent via AJAX request
- admin-ajax.php returns 0. How do I debug it and fix it?
- How to properly use wp.ajax.post?
- AJAX vs Fragment Caching for W3 Total Cache [closed]
- Detecting post type within init action
- Basic question on passing variables to AJAX in WordPress
- Delete row of custom table in WordPress using AJAX
- Metabox cloning via Admin Ajax call issue
- Change theme based on window size
- Serving nonces through AJAX is not refreshing nonce, returning 403 error
- Cannot update my options using wp_ajax
- ajax and nonce when JavaScript is in a seperate file
- Class WP_Rewrite not found
- Prevent wp_debug from polluting ajax within plugin
- How to localize inline script called with ajax
- Conditional Ajax inclusion
- How to allow to user non logged in WP system upload in media library?
- WordPress function to get term or post object by id
- Allow AJAX call to other roles than admin
- submitting form via admin-ajax.php returns 0
- Help add ajax load more button
- Conditional success callback based on Ajax Response not working
- Can a wp_nonce created from domain 1 to be verified on domain 2?
- How to use several wp_ajax_ functions for different queries?
- Three level taxonomy dropdown frontend
- How to solve “Updating failed” with 403 Error when trying to save a Site or Post in Gutenberg?
- Keep getting 400 Bad Request error when trying out AJAX on custom theme
- How to set post_id to 0 when you upload image via Add media button. (async-upload.php)
- Ajax simple experiment
- How to load new text widgets and polls into the sidebar without reloading the page?
- Updating User Meta with Array on Click of Button AJAX
- Why is on status span no search results?
- eventON plugin AJAX call triggers website crash
- Ajaxify Form That Submits To Same Page To Display Post Data [closed]
- Pagination Using ajax
- wp_ajax_ works fine but wp_ajax_nopriv_ returns HTML and not calling function
- Why is wp_localize_script returning false?
- Change header.php after ajax call
- Retrieve JSON file from JS trough php
- WordPress – admin-ajax.php returns 502 Bad Gateway [closed]
- Using admin-ajax prevents regular php form submission
- Sql formatting for post data within function
- Get returned URL from wp_remote_post if response code is 302
- Change URL without reload Ajax
- Send checkbox status with Ajax / JSON and save it
- ajax refresh to display new posts
- wp ajax execution time aborted 30 sec
- How to get setting from separate file?
- Replace link with form to pass variables to javascript / ajax
- WordPress function not defined in AJAX call
- admin-ajax.php calls fail if referrer is sent with 500
- Fetch value using AJAX in WordPress
- Can I use application/json content type in WordPress
- AJAX – get_posts for a specific post type returns empty
- How to pass value from ajax to php in no conflict mode?
- What is the relationship between UFW (firewall) being enabled and cron job running?
- WPBakery post content inside Bootstrap Modal
- Hook after all metadata are set is triggering several time
- check_ajax_reffer not working when logged
- Assign author on ajax wp post insert
- Ajax a php file that has Advanced Custom Fields in it
- Ajax show custom post data form & script
- Portfolio list view after clicking back button
- about load more ajax
- How to use add_action(‘wp_ajax_[action name]’,…) for a specific page with condition?
- Display SOLDOUT text in Dropdowns of Variable Product in WooCommerce [closed]
- Using AJAX to load div doesn’t always work
- Turn a URL into content preview
- AJAX save options inside class
- How to test if in dashboard, bypassing Ajax quirk
- Simulate a specific page when making AJAX calls
- Usage of wp_send_json_success and wp_redirect at the same time
- Manually cache a special, non-WP-but-using-WP page (e.g. Ajax results) with W3TC
- How to get parent comment’s id?
- Static var overwritten with WP AJAX action, works fine without AJAX
- using ajax to query sql
- Dynamic dependent select box getting null value
- AJAX loading with custom parameters
- Adding custom fields to Wired Impact Volunteer Management Plugin
- Placing ajax actions in different class
- How to update my jquery/PHP function to add/remove user as favorites in (WordPress) users list
- register_rest_route to send via ajax as guest results to 403