Disable rich text email
add_filter( ‘frm_rich_text_emails’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_rich_text_emails’, ‘__return_false’ );Continue reading
add_filter( ‘frm_rich_text_emails’, ‘disable_rich_text_email_for_specific_action’, 10, 2 ); function disable_rich_text_email_for_specific_action( $rich_text_emails, $args ) { $target_action_id = 2381; //Replace 2381 with your email action ID if ( $target_action_id === $args[‘form_action’]->ID ) { $rich_text_emails = false; } return $rich_text_emails; }Continue reading
add_filter(‘frm_logs_csv_filename’, ‘change_logs_csv_filename’, 10, 2); function change_logs_csv_filename($filename){ $filename = date(“ymdHis”,time()) . ‘_formidable_logs.csv’;//Change the filename here return $filename; }Continue reading
add_filter( ‘frm_should_import_files’, ‘__return_false’ );Continue reading
add_filter(‘frm_logs_csv_sep’, ‘change_logs_csv_sep’); function change_logs_csv_sep($separator){ return ‘ ‘; }Continue reading
add_filter( ‘frm_validate_entry’, ‘check_nonce_on_submit’, 10, 2 ); function check_nonce_on_submit( $errors, $values ) { $target_form_id = 117; // Replace 117 with the ID of your form. if ( $target_form_id === $values[‘form_id’] && ! wp_verify_nonce( $values[ ‘frm_submit_entry_’ . $values[‘form_id’] ], ‘frm_submit_entry_nonce’ ) )…Continue reading
add_filter( ‘frm_csv_columns’, ‘change_column_name’, 10, 2 ); function change_column_name( $headings, $form_id ) { $name_field_id = 2248; //Replace 1152 with your Name field ID $headings[ $name_field_id . ‘_first’ ] = ‘First name column’; $headings[ $name_field_id . ‘_last’ ] = ‘Last name column’;…Continue reading
add_filter( ‘frm_redirect_url’, ‘replace_encoded_ampersand’, 10, 2 ); function replace_encoded_ampersand( $url, $form ) { $target_form_id = 727; // Change 727 to your form ID. if ( $target_form_id === (int) $form->id ) { $url = str_replace( ‘&’, ‘&’, $url ); } return $url;…Continue reading
add_filter(‘frm_acf_compatible_field_types’,’acf_map_date_field’); function acf_map_date_field( $mapping ) { $mapping[‘date’][] = ‘text’; return $mapping; }Continue reading
add_filter(‘frm_acf_repeater_child_entry_data’,’acf_change_ip_child_entry’, 10, 2); function acf_change_ip_child_entry( $entry_data, $args ) { if ( 10 == $args[‘parent_entry’]->id ) { $entry_data[‘ip’] = ‘127.0.0.1’; } return $entry_data; }Continue reading