Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

frm_export_csv_headings

Heads up! This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.

Use this filter to add, rename and remove exported CSV headings.

Usage

add_filter( 'frm_export_csv_headings', 'rename_timestamp_column_in_csv_export' );

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Parameters

  • $headings (array)

Examples

Rename timestamp column

Use the code below to rename the timestamp column in CSV export.

add_filter( 'frm_export_csv_headings', 'rename_timestamp_column_in_csv_export' );
function rename_timestamp_column_in_csv_export( $headings ) {
	$headings['created_at'] = 'New Timestamp Column Name';
	return $headings;
}

Remove IP column

Use the code below to remove the IP column from CSV export.

add_filter( 'frm_export_csv_headings', 'remove_ip_from_csv_export' );
function remove_ip_from_csv_export( $headings ) {
	unset( $headings['ip'] );
	return $headings;
}

Add custom heading

Use the code below to allow custom heading in CSV export. The supported heading values include:

  • IDs of fields in the form.
  • Other standard headers: id, item_key, name, description, ip, form_id, post_id, user_id, parent_item_id, is_draft, updated_by, created_at, updated_at.
  • For comments: comment, comment_user_id, comment_created_at.

The headers should match the order of the columns.

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;
}
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2025 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Complete your purchase
    Special offer unlocked.
    Get 55% OFF!
    Complete Purchase
    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms