The way you’re adding parameters to the url isn’t working. The ajax request is designed to prevent parameter insertion like this.
I recommend you kick off another ajax request to handle this process rather than trying to hook into the existing process in this way.
For example, you can kick off your modal window after a comment is trashed and control the submission and logging process separately.
Related Posts:
- How modify comments metabox on post edit screen in WordPress?
- get_comments() returns empty array if called through AJAX
- Ajax form submission from admin panel
- edit-comments.php comment_row_actions ajax problem
- How to securely add an Ajax button to a WP Admin page?
- Load custom formatted comment with AJAX: reply link isn’t rendered?
- wp_remote_get() to get AJAX url /wp-admin/admin-ajax.php
- AJAX requests broken due to HTTPS for wp-admin
- wp-admin AJAX with Fetch API is done without user
- WP Admin AJAX Security – using POST to include a relative URL
- WordPress Ajax Not Working ( Custom Admin page)
- Why a strange discrepency between get_current_user_id() when using AJAX versus output of document.cookie?
- Loading comments in ajax – comment-reply function missing $args
- Pass additional parameter with async upload
- Ajax comment form submit on frontpage alerts success but no insertion
- How to update Comment post meta through an Ajax call
- Use WP admin AJAX url to hide API key
- Preprocess submitted data
- How to check nonce lifetime value of plugins?
- Full Front End, AJAX comment system and comment reply script
- Use AJAX in a WordPress Plugin to Get Data From Custom Database?
- admin-ajax.php returns 0 even when the post status code is 200 OK
- Can I use application/json content type in WordPress
- Ajax call not working anymore
- WorddPress website admin part not working correctly – I think ajax/json issue
- Turn a URL into content preview
- Ajax Comment: Page reloads whenever the comment submission form is reloaded
- Weird admin-ajax.php problem
- WordPress Get Header and Footer using in Admin Area
- WordPress blocking polling request when signed into Admin
- randomly get 400 error while user is logged in wp_ajax
- Blocking admin-ajax.php from outside domain
- wp-admin/admin-ajax.php 400 Bad request (chrome console)
- contact form 7 form not working in admin panel
- How does the security of admin_ajax.php work?
- PHP “php://input” vs $_POST
- Google Maps API throws “Uncaught ReferenceError: google is not defined” only when using AJAX
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- How to solve the error “SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.” in IE
- Show spinner GIF during an $http request in AngularJS?
- Refresh HTML Page in Browser Automatically on Timer – Every 15 Min
- JavaScript implementation of Gzip
- jQuery: Performing synchronous AJAX requests
- ASP.NET MVC controller actions that return JSON or partial html
- jQuery’s .on() method combined with the submit event
- Ajax takes 10x as long as it should/could
- How to check if I am in admin-ajax.php?
- Is there ANY way to remove comments function and section totally?
- Best way to end WordPress ajax request and why?
- How to load wp_editor() through AJAX/jQuery
- How to cache json with wp-super cache
- Load minimum WordPress environment
- Why use wp_send_json() over echo json_encode()?
- Why use admin-ajax.php and how does it work?
- How to get a unique nonce for each Ajax request?
- Open a Thickbox with content trough AJAX
- Initialize TinyMCE editor / visual editor after AJAX insert
- Admin ajax request return 0 with die()
- Why not register shortcodes if is_admin dashboard?
- Filtering the Admin Comments List to Show Only Comments from the Current User?
- How to export comments in WordPress?
- How to make comments work for a post loaded per Ajax?
- WordPress AJAX with Axios
- Why is die() used at the end of function that handles an Ajax request?
- Why might a plugin’s ‘do_shortcode’ not work in an AJAX request?
- Making my AJAX powered WordPress Crawlable
- Is there a JavaScript API? How to access public and private data in JS?
- Get Previous & Next posts by Post ID
- failed to load wp-admin/admin-ajax.php
- Using Backbone with the WordPress AJAX API
- Using Ajax with a Class file
- Ajax in a settings page (update_option is undefined)
- How to pass data parameter to ajax action function handler
- WordPress Ajax Data Security
- Enable Submit Comment Without Page Reload (Using Ajax)?
- Displaying PHP Errors from admin-ajax.php
- wp_set_auth_cookie() doesn’t work in Ajax call
- gettext does not translate when called in ajax
- Execute one AJAX request after another AJAX request finished
- Custom column for changing post status via ajax
- WP-AJAX vs WP REST API: What to use for requests to the website from outside?
- Ajax and autocomplete
- How to add to cart via AJAX Woocommerce [closed]
- Nonces and Cache
- WordPress 4.8: Using multiple WYSIWYG-Editors with media inside of Widgets how to?
- SSL breaks customizer: page isn’t returned from ajax
- How to load and show comments with AJAX instead of pagination?
- Why is a 500 error generated by admin-ajax.php not going into the Apache error log?
- Are ‘wp_ajax’ and ‘wp_ajax_nopriv’ exclusive to authenticated and non-authenticated users?
- How to HTML5 FormData Ajax
- admin-ajax.php vs Custom Page Template for Ajax Requests
- How to override WP_DEBUG for Ajax responses?
- Stop admin-ajax?
- redirect out of wp-admin, without losing admin-ajax.php
- Call to undefined function add_action()
- Is it safe to assume that a nonce may be validated more than once?
- Including WordPress in RESTful API
- Multiple ajax nonce requests
- Get posts with ajax