I ended up solving this by using a hidden form field and updating the value to the hidden field via JQuery – this data was then posted to the server when the from was posted (via method=”POST”).
Related Posts:
- How can I pass a variable to wp_ajax action?
- How to pass JavaScript variable to PHP in wordpress widget?
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- Errors while using ajax from external wordpress page
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- How to use wp-ajax in wp-cron
- How to add pagination to wpbakery grid?
- WordPress Ajax Callback
- WordPress Plugin Page is Loading in Admin Content Container Instead of Separate Page
- WooCommerce get_price returning wrong price when used via ajax
- Shortcode button dosent work for all posts. Work for first post only
- How to put JQuery/Ajax inside shortcode?
- Using a custom plugin to capture input data via Ajax and PHP
- Ajax call returning 0
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- Using color picker in plugin, does input attribute order matter?
- Call plugin with php function
- Does having more than 30 Admin Ajax affects site performance (plugin)?
- wordpress add_action() issue in ajax call
- How to get specific string/value from an array? php [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Asynchronous request in wordpress
- Plugin not working locally, but works on server
- Passing PHP Variables to AJAX Loaded Pages
- Ajax call not working in wordpress through a plugin
- Send Array from JS to php file then insert it in wp database through a plugin
- can’t unzip file
- Strange admin-ajax / CSS / $_SESSION issue
- How do I reinit WordPress plugins dynamically using jS?
- How can I adjust my function so the page editor still loads in the backend?
- WP Ajax DB issues
- Calling PHP function with AJAX
- In a plugin, How to update a json file using ajax
- Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- How to use Datatable with Ajax when creating plugin on WordPress?
- How to avoid the 403 Forbidden error in a WP Plugin with Ajax and PHP
- wp-admin/admin-ajax.php 400 (Bad Request) plugin
- Ajax call to php function doesn’t work PHP code
- Compare Ajax Data Results
- Conditional Fields depending on checkboxes
- Help with customising love it plugin (use within foreach)
- My ajax request don´t work and return 0
- WordPress environment not loading properly
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- AJAX doesn’t pass variables to the php function in the plugin
- How do I convince this button to do something when it is clicked?
- display user input using ajax in wordpress
- Hyperlink to execute PHP
- How to get site homepage from plugin?
- Pulling Advanced Custom Fields from other pages
- Response from Php File to Ajax is not getting sent
- Help me with my first very basic plugin
- WordPress portfolio pagination on home page
- How do I call an action hook into wp_ajax hook callback function
- How can I use WordPress functions in my stylesheet?
- WP showing “warning: call_user_func_array()”, What to do?
- How can i change an image’s author?
- WP-Members redirect if member ALREADY logged in
- How to edit/delete single row items in a table on my own menu page
- Get a list of galleries from an album in NextGEN Gallery [closed]
- Undefined property: WP_Post_Type::$ID
- Plugin exceeds memory limit
- How to trigger $_GET request within admin plugin page?
- Wp favorite posts get user favorites in profile using buddypress [closed]
- Preferred way of cacheing a value in php
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- Automatically add attributes to woocommerce product?
- Adding a slider captcha to the comment system
- wp_remote_get() returns 403 while file_get_contents() does not
- WordPress Widget Not Saving Data
- Center and hide overflow of WP toolbar custom links
- Post Comments with Ajax in WordPress
- How can i force wp-admin to use 2-column dashboard layout? [closed]
- Are there action hooks for comments?
- Plugin onclick button activate other plugin
- Show icons or badges under title on product archives/category pages
- Convert to shortcode?
- Add logo to admin menu in my plugin
- Get data from wp_posts of mysql in to variables of wordpress-php script
- WordPress plugin won’t create custom tables
- Ajax Call in page theme not working?
- Trying to get property of non-object wordpress error message
- Problem with ajax plugin for refreshing posts
- Advertising: Every page refresh counts as 3 ad impressions
- Somehow adding to “Insert Into URL” posts are contradicting each other
- WordPress Cache delete on plugin uninstall
- How to create repeater field manually, without plugin (ACF Pro)?
- Display Author name PHP (Selfmade Plug-IN)
- wp_query ‘s’ parameter does not work with WC_AJAX
- Jquery POST Ajax Return null data in wordpress
- WordPress hide post from custom post-type on a single page
- Ajax Call not Working in Plugin
- Try to debug a plug-in written by someone else
- Add a WooCommerce Product Variant with attributes programmatically
- W3 Total Cache Can’t Really Detect Things
- How do I add php to all links automatically?
- Plugin use of ajax/jquery depending dropdown
- How to make a rest style plugin?
- How to add custom html to the Media > Attachment Details modal?