Separate columns of CSV with semicolon
add_filter( ‘frm_export_csv_column_sep’, ‘separate_csv_column_semicolon’); function separate_csv_column_semicolon( $column_separator ) { return ‘;’; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_export_csv_column_sep’, ‘separate_csv_column_semicolon’); function separate_csv_column_semicolon( $column_separator ) { return ‘;’; }Continue reading
add_action( ‘frm_export_view_options_saved’, ‘after_export_view_options_saved’ ); function after_export_view_options_saved( $settings ) { // Do something after export view options have been saved. }Continue reading
add_filter(‘frm_logs_cron_remains’, ‘logs_cron_remains_extend’); function logs_cron_remains_extend() { return ‘-1 month’; }Continue reading
/** * @param array $options * @param array $field */ function add_custom_autocomplete_option_for_field( $options, $field ) { $target_field_id = 13; // change 13 to your text field ID if ( $target_field_id !== (int) $field[‘id’] ) { return $options; } $options[‘cc-name’] =…Continue reading
add_filter(‘frm_graph_data’, ‘frm_compare_average_graph’, 10, 2); function frm_compare_average_graph( $data, $atts ) { if ( ! isset( $atts[‘title’] ) || $atts[‘title’] !== ‘Score comparison’ ) { // Change ‘Score comparison’ to the title of your graph. return $data; } $data[0][1] = ‘Your score’;…Continue reading
add_filter( ‘frm_export_view_risky_characters’, ‘remove_risky_characters’ ); function remove_risky_characters( $characters ) { return array( ‘=’, ‘@’ ); }Continue reading
add_filter( ‘frm_graph_data’, ‘frm_stats_graph’, 10, 2 ); function frm_stats_graph( $data, $atts ) { if ( isset( $atts[‘title’] ) && $atts[‘title’] == ‘gas’ ) { $data[0][1] = “Gas (in gallons)”; for ( $i = 1, $l = count( $data ); $l >…Continue reading
add_action(‘frm_after_create_entry’, ‘frm_create_entry_for_each_user’, 30, 2); function frm_create_entry_for_each_user( $entry_id, $form_id ) { global $wpdb; if ( $form_id != 527 ) { //Change 527 to the id of the Trigger form return; } $directory_form = ‘526’; // Change 526 to the id of…Continue reading
add_filter( ‘frm_pdfs_fields_for_export’, ‘remove_field_from_pdf’, 10, 2); function remove_field_from_pdf( $fields, $args ) { if ( 10 == $args[‘entry’]->id ) { // Replace 10 with your entry ID foreach ( $fields as $index => $field ) { if ( 13 == $field->id )…Continue reading
add_filter( ‘frm_export_content’, function( $cell ) { if ( ‘+’ === substr( $cell, 0, 1 ) && ! cell_is_phone_number( $cell ) ) { return “‘” . $cell; } return $cell; } ); function cell_is_phone_number( $cell ) { $substring = substr( $cell,…Continue reading