Turn off the JavaScript antispam check.
add_filter( ‘frm_run_antispam’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_run_antispam’, ‘__return_false’ );Continue reading
add_filter( ‘frm_process_antispam’, ‘my_custom_function’ ); function my_custom_function( $is_valid ) { if ( $is_valid !== true ) { //do something } return $is_valid; }Continue reading
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
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
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_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
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
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
add_filter( ‘rest_prepare_frm_fields’, ‘change_field_name’, 10, 3 ); function change_field_name( $response, $field, $request ) { if ( isset( $response->data[‘name’] ) ) { $response->data[‘name’] = ‘place here the new name of the field’; } return $response; }Continue reading
add_filter( ‘rest_prepare_frm_forms’, ‘change_form_name’, 10, 3 ); function change_form_name( $response, $form, $request ) { if ( isset( $response->data[‘name’] ) ) { $response->data[‘name’] = ‘place here the new name of the form’; } return $response; }Continue reading