Extend time to check after today.

add_filter( ‘frm_form_token_check_after_today’, ‘my_custom_function’ ); function my_custom_function( $times ) { $times = array( 50 * MINUTE_IN_SECONDS ); // Add in 50 minutes past today. return $times; }Continue reading

Add new tag

add_filter( ‘frm_mlcmp_tags’, ‘add_new_tag’ ); function add_new_tag( $tags, $data ) { if ( $data[‘subscriber_id’] === ‘123’ ) { $tags[] = array( ‘name’ => ‘New tag’, ‘status’ => ‘active’, ); } return $tags; }Continue reading

Change property

add_filter( ‘frm_field_value_object’, ‘change_field_name_property’, 10, 1 ); function change_field_name_property( $field ) { if ( $field->id === ‘123’ ) { $field->name = ‘new name’; } return $field; }Continue reading

Change property

add_filter( ‘frm_xml_response’, ‘change_response_message’ ); function change_response_message( $response ) { $form_id = ‘123’; if ( $response[‘id’] === $form_id ) { $response[‘message’] = ‘new message’; } return $response; }Continue reading

Flag the submission of a form as honeypot spam

add_filter( ‘frm_process_honeypot’, ‘my_custom_function’, 10, 2 ); function my_custom_function( $is_honeypot_spam, $atts ) { if ( $atts[‘form’]->id === ‘5’ ) { //change 5 to the ID of your form if ( $is_honeypot_spam ) { // handle honeypot spam. } } return $is_honeypot_spam;…Continue reading

Change field label

add_filter( ‘frm_field’, ‘change_field_label’ ); function change_field_label( $field ) { if ( $field->id === ‘4089’ ) { $field->name = ‘place new label here’; } return $field; }Continue reading

Check for duplicates in repeating fields

add_filter( ‘frm_validate_field_entry’, ‘check_repeating_value_for_duplicates’, 10, 4 ); function check_repeating_value_for_duplicates( $errors, $posted_field, $posted_value, $args ){ if ( $posted_field->id == 12692 ) { //Replace 12692 with the ID of the repeater field. $field_to_check = 12694; //Replace 12694 with the ID of the field…Continue reading

Redirect to Referrer URL after editing

add_filter(‘frm_setup_edit_fields_vars’, ‘frm_set_checked’, 20, 3); function frm_set_checked($values, $field, $entry_id){ if ( in_array( $field->id, array(210) ) ) { //Replace 210 with your hidden field ID $values[‘value’] = $_SERVER[‘HTTP_REFERER’]; } return $values; }Continue reading