Change the array separator
add_filter(‘frm_pdfs_show_args’, ‘change_array_separator’, 10, 2); function change_array_separator( $show_args, $args ) { $show_args[‘array_separator’] = ‘|’; return $show_args; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_pdfs_show_args’, ‘change_array_separator’, 10, 2); function change_array_separator( $show_args, $args ) { $show_args[‘array_separator’] = ‘|’; return $show_args; }Continue reading
add_action(‘frm_after_create_entry’, ‘save_post_id’, 60, 2); function save_post_id( $entry_id, $form_id ) { if ( $form_id == 341 ) {// Replace 341 with the ID of your form $entry = FrmEntry::getOne( $entry_id ); if ( ! $entry->post_id ) { return; } FrmEntryMeta::add_entry_meta( $entry_id,…Continue reading
function filter_graph_data_to_match_min_x( $data, $atts ) { if ( ! isset( $atts[‘x_min’] ) ) { return $data; } return array_values( array_filter( $data, function( $row ) use ( $atts ) { return $row[1] >= floatval( $atts[‘x_min’] ); } ) ); } add_filter(…Continue reading
add_filter( ‘frm_new_form_values’, ‘enable_file_protection_by_default’ ); function enable_file_protection_by_default( $values) { $values[‘options’][‘protect_files’] = 1; return $values; }Continue reading
add_filter(‘frm_pdfs_access_code_expired_time’, ‘change_expired_time’); function change_expired_time() { return WEEK_IN_SECONDS; }Continue reading
add_filter(‘frm_surveys_likert_responsive_breakpoint’, ‘change_likert_responsive_breakpoint’, 10, 2); function change_likert_responsive_breakpoint( $min_width, $args ) { $field_id = is_object( $args[‘field’] ) ? $args[‘field’]->id : $args[‘field’][‘id’]; if ( 728 == $field_id ) { // Change 728 to the Likert field ID. Remove this check if you want…Continue reading
add_action(‘frm_after_destroy_entry’, ‘my_custom_function’, 10, 2); function my_custom_function( $entry_id, $entry ) { $target_form_id = 29; // change 29 to your form ID. if ( $target_form_id !== (int) $entry->form_id ) { return; } // Handle deleted entry for target form. }Continue reading
add_filter( ‘frm_pdfs_export_content’, ‘add_extra_content’, 10, 2); function add_extra_content( $content, $args ) { $entry_id = ‘<p>Entry ID: #’ . $args[‘entry’]->id . ‘</p>’; return $entry_id . $content; }Continue reading
add_filter(‘frm_pdfs_export_file_name’, ‘prepend_site_name’ , 10, 2); function prepend_site_name( $file_name, $args ) { $file_name = sanitize_title( get_bloginfo( ‘name’ ) ) . ‘-‘ . $file_name; return $file_name; }Continue reading
add_filter(‘frm_pdfs_css’, ‘modify_pdfs_css’ , 10, 2); function modify_pdfs_css( $css, $args ) { // Modify the CSS here. return $css; }Continue reading