Basic Example
add_filter( ‘frm_protect_temporary_file’, ‘__return_false’ );Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_protect_temporary_file’, ‘__return_false’ );Continue reading
add_filter( ‘frm_pro_fields_in_summary_values’, ‘exclude_field_from_summary’, 10, 2 ); function exclude_field_from_summary( $fields, $args ) { $target_form_id = 302; // Replace 302 with ID of your form if ( $target_form_id !== (int) $args[‘form_id’] ) { return $fields; } $field_id_to_remove = 1460; // Replace 1460…Continue reading
add_filter(‘frm_csv_filename’, ‘change_csv_filename_attachment’, 10, 3); function change_csv_filename_attachment( $filename, $form, $args ) { if ( empty( $args[‘meta’] ) ) { return $filename; } $target_action_id = 158; // change 158 with the email form action ID $meta = $args[‘meta’]; if ( ! empty(…Continue reading
add_filter( ‘frm_entry_formatter_class’, ‘change_entry_formatter_class’, 10, 2); function change_entry_formatter_class($formatter_class, $atts) { if ( 10 == $atts[‘form_id’] ) { $formatter_class = ‘YourCustomEntryFormatter’; } return $formatter_class; }Continue reading
add_filter( ‘frm_pro_default_form_settings’, ‘turn_on_file_protection_by_default’ ); function turn_on_file_protection_by_default( $defaults ) { $defaults[‘protect_files’] = 1; return $defaults; }Continue reading
add_filter( ‘frm_prepend_and_or_where’, ‘change_prepend_and_or_where’, 10, 2); function change_prepend_and_or_where($where, $starts_with ) { // Do something. return $where; }Continue reading
add_filter( ‘frm_entry_formatter_format’, ‘add_entry_formatter_format’, 10, 2); function add_entry_formatter_format( $format, $args ) { if ( isset( $args[‘atts’][‘format’] ) && ‘new_format’ === $args[‘atts’][‘format’] ) { $format = ‘new_format’; } return $format; }Continue reading
add_filter( ‘frm_formatted_entry_values_content’, ‘add_formatted_entry_values_content’, 10, 2); function add_formatted_entry_values_content( $content, $args ) { if ( 10 == $args[‘entry’]->id && ‘new_format’ === $args[‘format’] ) { $content .= ‘<p>Some custom string</p>’; } return $content; }Continue reading
add_filter( ‘frm_entries_show_args’, ‘change_entries_show_args’, 10, 2); function change_entries_show_args( $show_args, $args ) { if ( 10 == $args[‘form’]->id ) { $show_args[‘format’] = ‘new_format’; } return $show_args; }Continue reading
add_filter( ‘frm_entries_show_args’, ‘change_entries_table_style’, 10, 2); function change_entries_table_style( $args ) { $args[‘class’] = ‘frm-grid’; return $args; }Continue reading