Prevent Line Break

add_filter(‘frm_csv_line_break’, ‘prevent_csv_line_break’); function prevent_csv_line_break(){ return ‘<br />’; //change this to whatever you’d like to use in place of line breaks }Continue reading

Change Date Format

add_filter(‘frm_csv_date_format’, ‘change_my_csv_format’); function change_my_csv_format($format){ $format = ‘d/m/Y’; return $format; }Continue reading

Add more templates

add_filter( ‘frm_default_templates_files’, ‘add_more_default_templates’, 30 ); function add_more_default_templates( $template_files ) { $template_files[] = dirname( __FILE__ ) . ‘/yourxml.xml’; // make sure the path to your XML file is correct return $template_files; }Continue reading

Add a Value to Your CSV File

add_filter(‘frm_csv_value’, ‘frm_csv_value’, 10, 2); function frm_csv_value($value, $atts){ if($atts[‘field’]->id == 25){ //change 25 to your field id $value = ‘new value here’; } return $value; }Continue reading

Order by Month

add_filter(‘frm_view_order’, ‘change_view_order’, 10, 2); function change_view_order($query, $args){ if ( $args[‘display’]->ID == 2412 ) { //replace 2412 with you Field ID $query[‘order’] = ‘ORDER BY MONTH(it.created_at) ASC’; } return $query; }Continue reading

Add Dynamic Total to Before Content

add_filter(‘frm_before_display_content’, ‘dynamic_frm_stats’, 10, 4); function dynamic_frm_stats($content, $display, $show, $atts){ if ( $display->ID == 1066 ) {//Change 1066 to the ID of your View $entries = $atts[‘entry_ids’]; $total = 0; foreach($entries as $entry){ $current_value = FrmProEntriesController::get_field_value_shortcode(array( ‘field_id’ => x, ‘entry’ =>…Continue reading

Add Field Total to After Content

add_filter(‘frm_after_display_content’, ‘add_view_total_to_after_content’, 30, 4); function add_view_total_to_after_content($after_content, $display, $show, $atts){ if ( $display->ID == 1066 ) {//Change 1066 to the ID of your View $entries = $atts[‘entry_ids’]; $total = 0; foreach($entries as $entry){ $current_value = FrmProEntriesController::get_field_value_shortcode(array( ‘field_id’ => x, ‘entry’ =>…Continue reading