update_post_meta after form is submited
The following is a crude example, it can be improved to ensure you’re dealing with integers etc and also shortened overall for brevity but this should get you started. add_filter(‘frm_after_create_entry’, ‘after_entry_created’, 30, 2); function after_entry_created($entry_id, $form_id){ global $post; if($form_id == 7){ //change 7 to the ID of your form $previous_value = get_post_meta($post_id, $key, true); if($previous_value … Read more