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
- ASP.NET MVC controller actions that return JSON or partial html
- Ajax in a settings page (update_option is undefined)
- Enable Submit Comment Without Page Reload (Using Ajax)?
- gettext does not translate when called in ajax
- Execute one AJAX request after another AJAX request finished
- admin-ajax.php vs Custom Page Template for Ajax Requests
- Show Custom Comment Fields when editing in admin
- Load tinyMCE / wp_editor() via AJAX [duplicate]
- Admin Media grid view images won’t load
- AJAX request from Chrome Extension to WordPress Website
- How to correctly load wordpress in a non WP script for AJAX request
- Why is admin ajax reloading my page
- Plupload in metabox – AJAX action not working in Class
- CPU usage: AJAX and Heartbeat API on admin pages
- Solve cors problem using rest api or ajax
- Can part of my WordPress website be headless?
- Nonces, AJAX, script variables & security in WordPress
- Extending wp JavaScript base class to make a post request to a custom REST endpoint
- Why would admin-ajax.php redirect to the home page for logged out users?
- wp_localize_script escaping my url – fix or alternative
- Admin Ajax and HTML5 Formdata
- Implementing an AJAX POST API call in wordpress
- WordPress ajax problem need wordpress expert?
- Ajax WordPress Login needs to be stayed in current page Url without redirecting
- wp_ajax function did not call
- Woocommerce update product price via AJAX
- How do I query posts by a sub value with the API?
- Popup or admin/update notice on post/page edit screen without page refresh
- Enqueue script in plugin is not working
- template_redirect or admin-ajax.php?
- Single page site + pushState?
- Loading Multiple Comments Pages via Ajax?
- Admin comments and user restrictions
- Ajax call does not work for this simple code
- WordPress ajax call returns a zero though die()
- wp_update_post onclick button using ajax
- Localize script not working
- Why, if a function accepts arguments, it fails on ajax calls?
- wp_ajax declaration confusing for Front end
- WP_query offset seems to be counting draft post – AJAX load more
- adding ajax load more to display images from meta box
- Can’t load search results with ajax
- wp_ajax is not calling the action
- Deny dashboard access breaks ajax requests
- Run javascript upon successfully set featured image
- update_option in WordPress AJAX
- ajax in admin menu
- Register Template
- Ajax Favorite from foreach (how to specify which result result is processed)
- change wordpress pagination url after doing the request
- WordPress responds to the ajax request with readyState 1, 2, 3 before responding with 4
- Filter images from media library by guid meta field
- Counting Posts with multiple taxonomy and terms condition using MySQL and AJAX
- WordPress New Post via ajax call
- 400 Bad Request getting on AJAX Call
- admin-ajax.php 403 errors – no caching, permissions are fine
- How to add Ajax to this Pagination i made?
- Adding user using admin ajax by a user with custom role
- How can I run two AJAX requests simultaneously in WordPress?
- Jquery wrap permalink in a data-attribute?
- Load .php file into div using ajax
- Native WordPress Video Shortcode Not Working After Post is Loaded via Ajax
- Using AJAX for dynamic settings pages
- Speeding up admin-ajax.php
- AJAX admin Internal 500 error Failed to Upload
- Class property not visible inside ajax callback function?
- $wpdb Ajax not redirecting to main page
- wordpress ajax bad request 400
- Custom WP rest api endpoint only working on non https?