This is really a javascript question, but there is nothing preventing you from doing a regular confirm with AJAX.
For example:
https://stackoverflow.com/questions/8680491/javascript-confirm-with-php-function-afterward
Related Posts:
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- How do I only load a plugin js on it’s settings pages?
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- Dequeue / Deregister script and replace it with a new plugin
- Insert code after tag without using functions.php?
- How do I use WordPress PHP functions in my Javascript code?
- OOP: Display warning and deactivate the plugin if PHP version is less than 5.4
- Passing select control value to block
- How to create popup same as wordpress popup feature
- Has anyone used require.js for handling plugin scripts?
- Passing RichText attributes to function onChange
- How do I store information in a dynamic block in WordPress?
- Do you clean up your self-written plugins’ at deactivation?
- How to automate wordpress plugin activate and deactivate by php logic?
- Why my Plugin keeps deactivating automatically?
- How to load plugin after page is loaded – pagespeed issues
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- React JSX in WordPress Plugin Development
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Best approach to fetch data from wp options to js file or php file
- Updating the Drag-To-Share eXtended share URLs?
- Enqueue WordPress plugin scripts below all other JS
- How to add Internationalization in WordPress using Javascript/React?
- wp.media javascript issue with on select
- How can I remove the WordPress-Version (?ver=5.x) from my plugin
- Redirect to another page using contact form 7? [closed]
- Delay JavaScript files from loading
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- How to use custom Javascript code inside a plugin?
- how to request a script more than once in wordpress
- How to deactivate my plugin upon deactivation of NextGen
- My plugin does not install correctly if a previous version is still installed
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Fixed: Console.log twice in the edit function
- Cannot run script properly with my custom plugin
- Add style to body based on url
- How to properly enqueue jQuery knob on WordPress without conflict?
- Problem with wordpress has_action() function
- Multiple image selection custom widget
- Create a form and have custom menu display based on user answers?
- AJAX update fails for public/non-admin users
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- How to use information from the database in the front-end?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How to pass value from WordPress to Javascript
- Javascript in plugin not working
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- Creating a user ‘add custom field’ section
- Need to hide an element depending on date and post category
- Ajax, jQuery and WordPress
- Plugin – including external javascript calling google maps
- get_option include in my adsense
- Ajax in Plugins: returns the whole page
- Load css classes after using ajax calls
- How to create post comparison in wordpress
- How to access values from your own settings page in javascript?
- Vanilla javascript in custom gutenberg block not working
- How to create a child/addon plugin
- How to secure the release of WordPress plugins / avoid copying plugins?
- add_filter doesn’t work
- Use wp-config.php constants in all files of plugin
- how to force tag page layout to use same as search layout?
- Run function on plugin activation before plugin is loaded
- a href adds default URL with the given echo URL
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- How to create a plugin that includes all the other plugins?
- Why is it important to check for isset and is_array before checking in_array in this example?
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- How to call external functions from a PHP script in a WordPress plugin?
- Don’t load the theme for a page FROM a plugin EDITED
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- How to add custom function to pluggable.php
- How to get Recent Post From Each Category with Thumbnail?
- Remove Zero Money From Previews Order woocommerce
- Show popup on click
- How use wp_insert_post and add og:custom tags?
- Access remote SFTP server via WordPress login?
- How to change “Read More” text?
- How to use wp_editor and save its data in wp_posts table
- My WordPress activation hook isn’t working
- Securing a plugin pop-up window
- Woocommerce – Change variations output
- Is admin section completely customizable in terms of styling?
- Better way to run heavy scripts using WordPress database
- Customizer preview URL not updating when settings reset to default
- Echo custom admin field into a is_single()
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- wp_enqueue_scrpts seems not to get called
- Exclude specifed files from plugin editor
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Couldn’t find a documentation for a filter API in plugin development
- Element works, but not on wordpress site [duplicate]
- My wordpress website admin panel loads very slow, what can i do about that? [closed]
- How to host a WordPress plugin on my own server and provide updates?
- register_activation_hook not working
- Predefine Product Variations for specific custom product type [closed]
- Create plugin with multiple blocks