I had troubles with making a set of buttons on my admin web page which can be used as soon as.
- How you can create a wp admin web page (to be used in an ajax request) hyperlinks to https://codex.wordpress.org/AJAX_in_Plugins which exhibits the essential code
- See additionally https://stackoverflow.com/questions/8597846/wordpress-plugin-call-function-on-button-click-in-admin-panel which has no code
- to make that safer one wants a nonce to permit solely ‘legitimate’ customers https://developer.wordpress.org/reference/features/wp_create_nonce/
However nonce are legitimate for 12-24 hours and never as soon as. So I wanted jQuery for invalidate the nonce within the browser.