Close the form on a specific date
add_action(‘frm_display_form_action’, ‘close_my_form’, 8, 3); function close_my_form($params, $fields, $form){ remove_filter(‘frm_continue_to_new’, ‘__return_false’, 50); if($form->id == 6){ //remove this section or change 6 to a form ID if(time() > strtotime(‘2012-05-15’)){ echo ‘This form has expired’; add_filter(‘frm_continue_to_new’, ‘__return_false’, 50); } } }Continue reading