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
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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
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
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
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_zap_url_auth’, ‘__return_true’ );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