I'm working on my settings page, I want to add two different buttons to the form and do something different depending which the user clicked.
The documentation states I can create two buttons like this:
submit_button('Submit', 'primary large', 'primary', false); submit_button( 'Delete', 'delete', 'delete', false );
However I don't understand how to differenciate when the user clicked each one, it seems that no matter which button clicked the form is submitted the same.
How can I do something different depending what button the user clicks?