Description

The wpforms_entry_csv_attachment_include_hidden filter controls whether hidden fields are included in entry CSV exports. By default, hidden fields are excluded.

This applies to fields created with the Hidden Field form field as well as deleted fields that were previously part of the form.

parametertypedescription
$include_hiddenboolWhether to include hidden fields in CSV exports. Default is false.

Source

wpforms\src\Pro\Admin\Builder\Notifications\Advanced\EntryCsvAttachment.php

Example

/**
 * Include hidden fields in entry exports.
 */
add_filter( 'wpforms_entry_csv_attachment_include_hidden', '__return_true' );

Reference Article