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
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
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_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_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_csv_columns’, ‘remove_id_column’, 10, 2 ); function remove_id_column( $headings, $form_id ) { if ( $form_id == 5 ) { //change 5 to your Form ID unset( $headings[‘id’] ); //change id to the header of the column to be removed }…Continue reading
add_filter( ‘frm_csv_columns’, ‘change_column_name’, 10, 2 ); function change_column_name( $headings, $form_id ) { $new_labels = array( 25 => ‘New label’, 26 => ‘Another label’ ); //change 25 and 26 to your Field IDs, and the labels to the ones you would…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
add_filter( ‘frm_no_entries_message’, ‘remove_no_entries_message_div’, 10, 2); function remove_no_entries_message_div( $message, $args ) { if ( $args[‘display’]->ID == 1066 ) { $message = str_replace( ‘<div class=”frm_no_entries”>’, ”, $message ); $message = substr( $message, 0, -6 ); } return $message; }Continue reading