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_post’, ‘set_post_status’, 10, 2 ); function set_post_status( $post, $args ) { if ( $args[‘form’]->id == 68 ) { //change 68 to the ID of your form $role = $_POST[‘item_meta’][41065]; //Change 41065 to the ID of the hidden field with…Continue reading
add_filter(‘frm_pdfs_access_code_max_days’, ‘filter_access_code_max_days’); function filter_access_code_max_days() { return 7; // Replace 7 with the number of days. }Continue reading
add_filter(‘frm_pdfs_dompdf_args’, ‘disable_remote_image_processing’ ); function disable_remote_image_processing( $args ) { $args[‘enable_remote’] = false; return $args; }Continue reading
add_filter(‘frm_pdfs_dompdf_args’, ‘fix_images_unsafe_https’ ); function fix_images_unsafe_https( $args ) { if ( ! isset( $args[‘http_context’] ) ) { $args[‘http_context’] = array(); } if ( ! isset( $args[‘http_context’][‘ssl’] ) ) { $args[‘http_context’][‘ssl’] = array(); } $args[‘http_context’][‘ssl’][‘verify_peer’] = false; return $args; }Continue reading
add_filter(‘frm_logs_csv_line_break’, ‘prevent_log_csv_line_break’); function prevent_log_csv_line_break(){ return ‘<br />’; //change this to what you want to use in place of line breaks }Continue reading
add_action(‘frm_log_csv_headers’, ‘change_log_bom_csv’); function change_log_bom_csv() { echo chr(239) . chr(187) . chr(191); }Continue reading
add_filter( ‘frm_should_import_files’, ‘__return_true’ );Continue reading