Use custom font
add_filter(‘frm_pdfs_css’, ‘custom_font_pdfs_css’, 10, 2); function custom_font_pdfs_css( $css, $args ) { $custom_css = ‘body { font-family: Dejavu Sans, sans-serif; }’; return $css . $custom_css; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_pdfs_css’, ‘custom_font_pdfs_css’, 10, 2); function custom_font_pdfs_css( $css, $args ) { $custom_css = ‘body { font-family: Dejavu Sans, sans-serif; }’; return $css . $custom_css; }Continue reading
add_filter( ‘frm_section_is_open’, ‘open_section_for_target_form’, 10, 2 ); function open_section_for_target_form( $open, $field ) { $form_id = is_object( $field ) ? $field->form_id : $field[‘form_id’]; $target_form_id = 1012; //Replace 1012 with your form ID if ( (int) $form_id === $target_form_id ) { $open =…Continue reading
add_filter(‘frm_get_run_success_action_args’, ‘show_form_success_action_args’, 10, 3); function show_form_success_action_args( $new_args, $args, $action ) { if ( ‘message’ === $new_args[‘conf_method’] ) { $new_args[‘form’]->options[‘show_form’] = 1; } return $new_args; }Continue reading
add_filter(‘frm_acf_supported_field_types’, ‘acf_map_text_to_email’); function acf_map_text_to_email( $field_types ) { $field_types[‘text’][] = ’email’; return $field_types; }Continue reading
add_filter(‘frm_acf_global_js_data’, ‘acf_global_js_data’, 10, 2); function acf_global_js_data( $data, $args ) { $data[‘form_object’] = FrmForm::getOne( $args[‘form_id’] ); $data[‘strings’][‘custom_string’] = ‘Your custom string’; $data[‘custom_data’] = ‘Your custom data’; return $data; }Continue reading
add_filter(‘frm_acf_form_action_js_data’, ‘acf_form_action_js_data’, 10, 2); function acf_form_action_js_data( $data, $args ) { $data[‘form_action_id’] = $args[‘form_action’]->ID; return $data; }Continue reading
add_filter(‘frm_redirect_delay_time’, ‘change_delay_time’); function change_delay_time( $delay_time ) { return 5000; }Continue reading
add_filter(‘frm_quiz_outcome_action_options’, ‘increase_quiz_outcome_limit’); function increase_quiz_outcome_limit( $options ) { $options[‘limit’] = 200; //Change 200 to your limit. return $options; } add_filter(‘frm_form_action_limit’, function( $limit ) { return 200; //Change 200 to your limit } );Continue reading
add_filter( ‘frm_search_any_terms’, ‘frm_custom_search_full_string’, 10, 2 ); function frm_custom_search_full_string( $use_or, $search_string ) { return false; }Continue reading
add_filter(‘frm_signature_allowlist_domains’, ‘add_approved_src_domain’); function add_approved_src_domain($whitelisted_domains){ $whitelisted_domains[] = ‘cdn.formidableforms.com’; return $whitelisted_domains; }Continue reading