Map date field to ACF text field
add_filter(‘frm_acf_compatible_field_types’,’acf_map_date_field’); function acf_map_date_field( $mapping ) { $mapping[‘date’][] = ‘text’; return $mapping; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_acf_compatible_field_types’,’acf_map_date_field’); function acf_map_date_field( $mapping ) { $mapping[‘date’][] = ‘text’; return $mapping; }Continue reading
add_filter(‘frm_acf_repeater_child_entry_data’,’acf_change_ip_child_entry’, 10, 2); function acf_change_ip_child_entry( $entry_data, $args ) { if ( 10 == $args[‘parent_entry’]->id ) { $entry_data[‘ip’] = ‘127.0.0.1’; } return $entry_data; }Continue reading
add_filter(‘frm_acf_acf_to_frm’, ‘frm_acf_acf_convert_to_integer’, 10, 2); function frm_acf_acf_convert_to_integer( $new_value, $args ) { if ( ‘number’ === $args[‘acf_field’][‘type’] && ‘number’ === $args[‘frm_field’]->type ) { $new_value = intval( $new_value ); } return $new_value; }Continue reading
add_filter( ‘frm_pdfs_export_content’, ‘add_title_and_description_to_pdf’, 10, 2 ); function add_title_and_description_to_pdf( $content, $args ) { $target_form_id = 385; // Change 385 to the ID of your form $form_id = (int) $args[‘entry’]->form_id; if ( $target_form_id !== $form_id ) { return $content; } $form =…Continue reading
add_filter(‘frm_pdfs_dompdf_args’, ‘disable_remote_image_processing’ ); function disable_remote_image_processing( $args ) { $args[‘enable_remote’] = false; return $args; }Continue reading
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
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
add_action(‘frm_log_csv_headers’, ‘change_log_bom_csv’); function change_log_bom_csv() { echo chr(239) . chr(187) . chr(191); }Continue reading
add_filter( ‘frm_should_import_files’, ‘__return_true’ );Continue reading
add_filter(‘frm_pdfs_show_args’, ‘change_array_separator’, 10, 2); function change_array_separator( $show_args, $args ) { $show_args[‘array_separator’] = ‘|’; return $show_args; }Continue reading