Keep export CSV links valid for three days
add_filter( ‘frm_export_view_link_expiration’, ‘frm_change_link_expiration_hours’ ); function frm_change_link_expiration_hours() { return 72; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_export_view_link_expiration’, ‘frm_change_link_expiration_hours’ ); function frm_change_link_expiration_hours() { return 72; }Continue reading
add_filter( ‘frm_csv_columns’, ‘remove_label_column’, 10, 2 ); function remove_label_column( $headings, $form_id ) { if ( $form_id == 326 ) { //change 326 to your Form ID unset( $headings[‘4002_label’] ); //change 4002 to the field ID using separate values } return $headings;…Continue reading
add_filter( ‘frm_check_blacklist’, ‘limit_check_blacklist’, 10, 2 ); function limit_check_blacklist($check, $atts){ if ( $atts[‘form_id’] == 25 ) { //replace 25 with the id of the form you would like to disable the blacklist check on. $check = false; } return $check; }Continue reading
add_filter( ‘frm_get_paged_fields’, ‘randomize_form_fields’, 20, 2 ); function randomize_form_fields( $fields, $form_id ){ if ( $form_id == 25 ) { //change 25 to the id of the form to change shuffle( $fields ); } return $fields; }Continue reading
add_filter(‘frm_allow_date_mismatch’, ‘__return_true’);Continue reading
add_filter( ‘frm_message_placement’, ‘frm_message_placement’, 10, 2 ); function frm_message_placement( $placement, $args ) { return ‘after’; }Continue reading
add_filter(‘frm_setup_new_fields_vars’, ‘frm_populate_tags’, 20, 2); add_filter(‘frm_setup_edit_fields_vars’, ‘frm_populate_tags’, 20, 2); function frm_populate_tags( $values, $field ) { if ( $field->id == 125 ) { //replace 125 with the ID of the field to populate // Adjust your tag aruments as needed $tags_args =…Continue reading
add_action( ‘formidable_shortcode_atts’, ‘maybe_change_style_class’, 10, 2 ); function maybe_change_style_class( $shortcode_atts, $atts ) { if ( isset( $atts[‘form_style’] ) ) { global $frm_atts; $frm_atts[‘switch_style’] = $atts[‘form_style’]; add_filter( ‘frm_add_form_style_class’, ‘change_style_class’, 20 ); } } function change_style_class( $class ) { global $frm_atts; if (…Continue reading
add_filter( ‘frm_currency’, ‘frm_custom_currency’, 10, 2 ); function frm_custom_currency( $currency, $form ) { $form_id = is_object( $form ) ? $form->id : $form; if ( $form_id == 50 ) { // Change 50 to your form ID $currency = FrmProCurrencyHelper::get_currencies( ‘AUD’ );…Continue reading
add_filter( ‘frm_export_view_csv_filename’, ‘frm_change_export_filename’, 10, 2 ); function frm_change_export_filename( $filename, $view ) { if ( ! isset( $view->ID ) || $view->ID !== 74 ) { return $filename; } return ‘awesome_file’; }Continue reading