Save entry without authoring user ID

add_filter(‘frm_pre_create_entry’, ‘save_entry_without_userID’); function save_entry_without_userID( $values ) { $target_form_id = 239; //Replace 239 with your form ID if ( $target_form_id === (int) $values[‘form_id’] ) { $values[‘frm_user_id’] = 0; } return $values; }Continue reading

Add US Bank Account

add_filter(‘frm_stripe_payment_method_types’, ‘add_us_bank_account’); function add_us_bank_account( $payment_method_types ) { $payment_method_types = array( ‘card’, ‘link’, ‘us_bank_account’ ); return $payment_method_types; }Continue reading

Add Euro payments

add_filter(‘frm_stripe_payment_method_types’, ‘add_sofort_ideal_bancontact’); function add_sofort_ideal_bancontact( $payment_method_types ) { $payment_method_types = array( ‘sofort’, ‘ideal’, ‘bancontact’ ); return $payment_method_types; }Continue reading

Show total of items at the end of a table view

add_filter( ‘frm_display_inner_content_before_add_wrapper’, ‘table_view_total_row’, 10, 3 ); function table_view_total_row( $inner_content, $view, $args ) { if ( ! empty( $args[‘is_table_view’] ) ) { $total_columns = count( $args[‘box_content’] ); $total_items = count( $args[‘record_count’] ); $inner_content .= ‘<tr><td colspan=”‘ . intval( $total_columns ) .…Continue reading

Add custom class for table view

add_filter( ‘frm_views_table_class’, ‘table_view_class’, 10, 2 ); function table_view_class( $table_class, $args ) { // Remove zebra styling. $table_class = str_replace( ‘frm-alt-table’, ”, $table_class ); // Add custom class. $table_class .= ‘ your-custom-class’; return $table_class; }Continue reading

Limit options in TinyMCE Editor

add_filter(‘frm_rte_options’, ‘rte_limit_options’, 10, 2); function rte_limit_options($opts, $field){ $opts[‘tinymce’] = array(“toolbar1” => “undo redo bold italic alignleft aligncenter alignright alignjustify | bullist numlist outdent indent”); return $opts; }Continue reading

Reverse entry order in a repeater

add_filter(‘frmpro_fields_replace_shortcodes’, ‘reverse_entry_order_repeater’, 10, 4); function reverse_entry_order_repeater( $value, $tag, $atts, $field ) { if ( ! empty( $atts[‘foreach_entry_order’] ) && ‘desc’ === $atts[‘foreach_entry_order’] ) { arsort( $value ); } return $value; }Continue reading

Filter payment method

add_filter(‘frm_stripe_payment_method_types’, ‘filter_stripe_payment_method’, 10, 2); function filter_stripe_payment_method( $payment_method_types, $args ) { $map = array( 75 => array( ‘affirm’ ), 76 => array( ‘card’, ‘link’, ‘klarna’ ), ); $form_id = $args[‘form_id’]; if ( isset( $map[ $form_id ] ) ) { $payment_method_types =…Continue reading