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 a message in the global setting

add_filter( ‘frm_global_setting’, ‘replace_global_setting’, 10, 3 ); function replace_global_setting( $setting, $string, $settings ) { $form_id = $settings->current_form; if ( $form_id === 5 && $string === ‘login_msg’ ) { // change 5 to your form id and login&msg to the string name.…Continue reading

Set strings to be translatable

add_filter( ‘frm_form_strings’, ‘add_form_strings’, 10, 2 ); function add_form_strings( $strings, $form ) { // Add edit and delete options. if ( $form->editable ) { $strings[] = ‘edit_value’; $strings[] = ‘edit_msg’; } $strings[] = ‘prev_value’; if ( isset( $form->options[‘rootline_titles_on’] ) && !…Continue reading