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

Allow content in between search words

add_filter( ‘frm_where_filter’, ‘frm_flexible_filter’, 10, 2 ); function frm_flexible_filter( $where, $args ) { $view_id = 186;// Replace with your View ID $field = 644;// Replace with ID of your field if ( $args[‘display’]->ID == $view_id && $args[‘where_opt’] == $field ) {…Continue reading

Extend times to check before today

add_filter( ‘frm_form_token_check_before_today’, ‘my_custom_function’ ); function my_custom_function( $times ) { array_push( $times, 3 * DAY_IN_SECONDS ); // Three days ago. return $times; }Continue reading

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

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