AI要約
説明
wpforms_pro_admin_entries_export_skip_not_selected_choices フィルターは、エントリーをエクスポートする際に、チェックボックスおよびチェックボックス項目で選択されていない選択肢をスキップするために true または false を返します。
パラメーター
- $skip_not_selected_choices
- (bool) (必須) チェックボックスおよびチェックボックス項目フィールドで選択されていない選択肢をスキップするかどうかを決定します。デフォルトは
false(表示する) です。
ソース
wpforms/src/Pro/Admin/Entries/Export/Traits/Export.php
詳細情報
wpforms_pro_admin_entries_export_skip_not_selected_choices フィルターを true に設定すると、フォーム送信時に選択されなかったチェックボックスまたはチェックボックス項目の選択はスキップされます。
例
/** * 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' );