Add custom heading
add_filter( ‘frm_export_csv_headings’, ‘add_custom_heading_in_csv_export’ ); function add_custom_heading_in_csv_export( $headings ) { $headings[‘an_extra_column’] = ‘New column name’; return $headings; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_export_csv_headings’, ‘add_custom_heading_in_csv_export’ ); function add_custom_heading_in_csv_export( $headings ) { $headings[‘an_extra_column’] = ‘New column name’; return $headings; }Continue reading
add_filter(‘frm_pro_fields_in_dynamic_selection’, ‘hide_specific_field_dynamic_selection’, 10, 2); function hide_specific_field_dynamic_selection( $fields, $args ) { foreach ( $fields as $index => $field ) { if ( 13 == $field->id ) { //Replace 13 with the ID of your field unset( $fields[ $index ] ); }…Continue reading
add_filter(‘frm_pro_fields_in_lookup_selection’, ‘hide_specific_field_lookup_selection’, 10, 2); function hide_specific_field_lookup_selection( $fields, $args ) { foreach ( $fields as $index => $field ) { if ( 13 == $field->id ) { //Replace 13 with the ID of your field unset( $fields[ $index ] ); }…Continue reading
add_filter( ‘frm_images_dropdown_output’, ‘wrap_image_dropdown’, 10, 2); function wrap_image_dropdown( $output, $args ) { return ‘<div class=”your-custom-class”>’ . $output . ‘</div>’; }Continue reading
add_filter(‘frm_validate_field_entry’, ‘add_user_entry_counter’, 10, 3); function add_user_entry_counter($errors, $posted_field, $posted_value){ $field_id = 2806; // Change 2806 to the ID of the user entry counter field. if ( $posted_field->id == $field_id ) { $previous_value = FrmProEntriesController::get_field_value_shortcode( array( ‘field_id’ => $field_id, ‘user_id’ => ‘current’…Continue reading
add_filter( ‘frm_fields_in_entries_list_table’, ‘remove_likert_entries_table’, 10, 2 ); function remove_likert_entries_table( $fields, $args ) { if ( 13 != $args[‘form_id’] ) { return $fields; // Do not modify fields if this is not the form you want. } foreach ( $fields as $index…Continue reading
add_filter( ‘frm_validate_entry’, ‘frm_save_highest_and_lowest’, 20, 2 ); function frm_save_highest_and_lowest( $errors, $values ) { if ( $values[‘form_id’] !== 173 ) { // Change 173 to the id of your form. return $errors; } $fields = array( 2330, 2331, 2332, 2333, 2334 );//…Continue reading
add_filter( ‘frm_fields_in_form_builder’, ‘remove_likert_form_builder’, 10, 2); function remove_likert_form_builder( $fields, $args ) { if ( 13 != $args[‘form’]->id ) { return $fields; // Do not modify fields if this is not the form you want. } // Remove all Likert fields. foreach…Continue reading
add_filter( ‘frm_fields_in_settings’, ‘remove_likert_form_settings’, 10, 2); function remove_likert_form_settings( $fields, $args ) { if ( 13 != $args[‘form’]->id ) { return $fields; // Do not modify fields if this is not the form you want. } // Remove all Likert fields. foreach…Continue reading
add_filter( ‘frm_quiz_score_field’, ‘include_fields_in_quiz_score’, 10, 2 ); function include_fields_in_quiz_score( $count_field, $args ) { $forms = array( 203, 210 ); // List the ids of the quiz forms whose scoring you want to determine with this snippet if ( ! in_array( $args[‘field’]->form_id,…Continue reading