Run code when user saves a draft
add_action(‘frm_after_create_entry’, ‘frm_after_save_draft’, 30, 2); add_action(‘frm_after_update_entry’, ‘frm_after_save_draft’, 30, 2); function frm_after_save_draft($entry_id, $form_id){ if ( $form_id == 221 ) { //change 221 to the ID of your form if ($_POST[‘frm_saving_draft’] == 1) { // do something here } } }Continue reading