wpforms_pro_admin_entries_export_skip_not_selected_choices

Description

The wpforms_pro_admin_entries_export_skip_not_selected_choices filter is used to return true or false to skip non-selected choices for the Checkbox and Checkbox Items when exporting entries.

Parameters

$skip_not_selected_choices
(bool) (Required) Determines whether to skip not selected choices for the Checkbox and Checkbox Items fields. The default is false (to show)

Source

wpforms/src/Pro/Admin/Entries/Export/Traits/Export.php

More Information

The wpforms_pro_admin_entries_export_skip_not_selected_choices filter when set to true will skip any Checkbox or Checkbox Items selections that were not selected when the form was submitted.

Examples

/**
 * Filters whether to skip not selected choices for multiple fields.
 *
 * @link   https://wpforms.com/developers/wpforms_pro_admin_entries_export_skip_not_selected_choices/
 *
 * @param bool $skip_not_selected_choices Whether to skip not selected choices.
 *
 * @return bool
 */

add_filter( 'wpforms_pro_admin_entries_export_skip_not_selected_choices', '__return_true' );