Map date field to ACF text field
add_filter(‘frm_acf_compatible_field_types’,’acf_map_date_field’); function acf_map_date_field( $mapping ) { $mapping[‘date’][] = ‘text’; return $mapping; }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
add_filter(‘frm_acf_compatible_field_types’,’acf_map_date_field’); function acf_map_date_field( $mapping ) { $mapping[‘date’][] = ‘text’; return $mapping; }Continue reading
add_filter(‘frm_acf_repeater_child_entry_data’,’acf_change_ip_child_entry’, 10, 2); function acf_change_ip_child_entry( $entry_data, $args ) { if ( 10 == $args[‘parent_entry’]->id ) { $entry_data[‘ip’] = ‘127.0.0.1’; } return $entry_data; }Continue reading
add_filter(‘frm_acf_acf_to_frm’, ‘frm_acf_acf_convert_to_integer’, 10, 2); function frm_acf_acf_convert_to_integer( $new_value, $args ) { if ( ‘number’ === $args[‘acf_field’][‘type’] && ‘number’ === $args[‘frm_field’]->type ) { $new_value = intval( $new_value ); } return $new_value; }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