Stop default templates
add_filter( ‘frm_default_templates_files’, ‘stop_default_templates’, 30 ); function stop_default_templates(){ return array(); }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_default_templates_files’, ‘stop_default_templates’, 30 ); function stop_default_templates(){ return array(); }Continue reading
add_filter(‘frm_csv_format’, ‘set_frm_csv_format’); function set_frm_csv_format(){ return ‘windows-1256’; }Continue reading
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
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_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_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
add_filter(‘frm_display_entry_content’, ‘frm_get_row_num’, 20, 7); function frm_get_row_num($new_content, $entry, $shortcodes, $display, $show, $odd, $atts){ if ( $display->ID == 169 ) { if ( isset($_GET[‘frm-page-‘ . $display->ID]) ) { $page_num = absint( $_GET[‘frm-page-‘ . $display->ID] ); $page_size = $display->frm_page_size; $prev_total = ($page_num –…Continue reading
add_filter(‘frm_display_entries_content’, ‘frm_replace_content’, 20, 4); function frm_replace_content($new_content, $entries, $shortcodes, $display){ if($display->ID == 1066){//Replace 1066 with the ID of your View $new_content = “Your custom content here”; } return $new_content; }Continue reading
add_filter(‘frm_display_entry_content’, ‘frm_filter_content’, 20, 7); function frm_filter_content($content, $entry, $shortcodes, $display, $show, $odd, $atts) { if ( isset($atts[‘pagination’]) && $atts[‘count’] == 1 && $display->ID == 100 ) { //change 100 to your display ID $content = ‘Viewing Project 1 to ‘ .…Continue reading
add_filter( ‘frm_no_entries_message’, ‘remove_no_entries_message’, 10, 2); function remove_no_entries_message( $message, $args ) { if ( $args[‘display’]->ID == 1066 ) { $message = ”; } return $message; }Continue reading