This repository was archived by the owner on Apr 1, 2025. It is now read-only.
2.1
- Provide a button on an plugin admin page that, when pressed, will clear the cookies with the unique cookie name from the database.
- The
mn_handle_clear_cookies_requestfunction is hooked to theadmin_initaction, and checks if the "Clear Cookies" button was pressed. - If the button was pressed, it checks the nonce for security, calls the
mn_clear_cookiesfunction to clear cookies from the database, and displays a success message usingadd_settings_error.
- The