Change maximum filename limit
add_filter( ‘frm_max_filename_length’, ‘change_max_filename_limit’ ); function change_max_filename_limit( $limit, $name ) { // default is 100. return 200; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter( ‘frm_max_filename_length’, ‘change_max_filename_limit’ ); function change_max_filename_limit( $limit, $name ) { // default is 100. return 200; }Continue reading
add_filter( ‘frm_fields_in_tags_box’, ‘remove_likert_tags_box’, 10, 2); function remove_likert_tags_box( $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_views_fields_in_create_view_popup’, ‘change_fields_before_display_in_table_view_popup’ ); function change_fields_before_display_in_table_view_popup( $fields ) { // modify the $fields before they are added to the new table view pop up. return $fields; }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_delete_temp_files_period’, ‘adjust_temp_files_deletion_period’); function adjust_temp_files_deletion_period( $period ) { // default is -3 hours return ‘-30 minutes’; // minimum life span of a file }Continue reading
add_filter( ‘rest_prepare_frm_entries’, ‘my_custom_function’ ); function my_custom_function( $response ) { $meta_key = ‘5a4m0’; // change this to the meta key that needs to be converted to an integer. if ( isset( $response->data ) && ! empty( $response->data[‘meta’] ) && isset( $response->data[‘meta’][…Continue reading
add_filter( ‘frm_quiz_score_field’, ‘exclude_fields_from_quiz_score’, 10, 2 ); function exclude_fields_from_quiz_score( $count_field, $args ) { $fields_to_exclude = array( 2504, 2505, 2506 ); // List the ids of the fields you want to exclude from the quiz score. if ( in_array( $args[‘field’]->id, $fields_to_exclude )…Continue reading
add_filter( ‘frm_filename_spam_keywords’, ‘my_custom_function’ ); function my_custom_function( $spam_keywords ) { array_push( $spam_keywords, ‘another’ ); return $spam_keywords; }Continue reading
add_filter(‘frm_google_chart’, ‘frm_legend_geo_graph’, 10, 2); function frm_legend_geo_graph( $options, $args ) { $options[‘legend’] = ‘none’; return $options; }Continue reading