Basic Example

add_filter(‘frm_pdfs_access_code_max_days’, ‘filter_access_code_max_days’); function filter_access_code_max_days() { return 7; // Replace 7 with the number of days. }Continue reading

Fix images from unsafe HTTPs

add_filter(‘frm_pdfs_dompdf_args’, ‘fix_images_unsafe_https’ ); function fix_images_unsafe_https( $args ) { if ( ! isset( $args[‘http_context’] ) ) { $args[‘http_context’] = array(); } if ( ! isset( $args[‘http_context’][‘ssl’] ) ) { $args[‘http_context’][‘ssl’] = array(); } $args[‘http_context’][‘ssl’][‘verify_peer’] = false; return $args; }Continue reading

Prevent Line Break

add_filter(‘frm_logs_csv_line_break’, ‘prevent_log_csv_line_break’); function prevent_log_csv_line_break(){ return ‘<br />’; //change this to what you want to use in place of line breaks }Continue reading

Enable file protection by default

add_filter( ‘frm_new_form_values’, ‘enable_file_protection_by_default’ ); function enable_file_protection_by_default( $values) { $values[‘options’][‘protect_files’] = 1; return $values; }Continue reading

Change the responsive breakpoint

add_filter(‘frm_surveys_likert_responsive_breakpoint’, ‘change_likert_responsive_breakpoint’, 10, 2); function change_likert_responsive_breakpoint( $min_width, $args ) { $field_id = is_object( $args[‘field’] ) ? $args[‘field’]->id : $args[‘field’][‘id’]; if ( 728 == $field_id ) { // Change 728 to the Likert field ID. Remove this check if you want…Continue reading

Basic example

add_action(‘frm_after_destroy_entry’, ‘my_custom_function’, 10, 2); function my_custom_function( $entry_id, $entry ) { $target_form_id = 29; // change 29 to your form ID. if ( $target_form_id !== (int) $entry->form_id ) { return; } // Handle deleted entry for target form. }Continue reading