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 can I find plugins’ slug?
- wp.media update options and force render on uploader
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- WordPress Plugin Development from Scratch. How? [closed]
- How to show custom message once on plugin activation?
- Passing URL parameters to WordPress pages and pretty url
- How to get the custom page get_permalink?
- Plugin translations problem
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- What is the function to get plugin base url in multisite?
- PDF download – use wordpress functions
- WordPress register_activation_hook table creation not working
- nonces in custom oop plugin
- Wp die causing 500 Internal Server Error?
- Redirect to a welcome page after updating plugin
- link bbpress forum discussion to blogposts
- Re use the list table for a custom post type on another page
- Class variables not correct on page
- Why am I unable to load scripts in head in plugin?
- output html on post or page from custom plugin [closed]
- Change the number of plugins counted on wp-admin/plugins.php
- WordPress Object Oriented plugin development [closed]
- How can i list random author?
- Our plugin tags not appearing in WordPress Plugin Repository
- How can I create a page as a draft from my plugin?
- How to get values from network settings panel?
- Conditional delete metadata does not works
- Potential issue that plugin could have when it will be installed on several sites
- The function called on the wp head hook becomes null
- Cannot view Custom Post Type no matter what I try
- How to add defer to WordPress Plugin javascript? [duplicate]
- Prefix of $wpdb does not worked and does not displayed
- How to use a Must-Use plugin to hide a regular one and to hide itself?
- WordPress plugin not eching popular posts
- My first plugin doesn’t save the data in options
- How to create a page template using custom plugin
- WordPress 3,5 and Jquery version
- how to search through plugin in wordpress cimy-user-extra-fields?
- Defer parsing of JavaScript [duplicate]
- Pulsing circle before the post title (Breaking news flash)