Atenção!

Este artigo contém código PHP e destina-se a desenvolvedores. Oferecemos este código como uma cortesia, mas não fornecemos suporte para personalizações de código ou desenvolvimento de terceiros.

Para orientação extra, consulte o tutorial do WPBeginner sobre como adicionar código personalizado.

Dispensar

wpforms_pro_admin_entries_export_skip_not_selected_choices

Descrição

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.

Parâmetros

$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)

Fonte

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

Mais Informações

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.

Exemplos

/**
 * 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' );