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.
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 exclude some fields from being captured as abandoned entries.
Usage
add_filter('frm_abandonment_exclude_field_types', 'frm_abandonment_exclude_field_types');
Parameters
- None
Examples
Exclude fields from abandonment
By default password fields are not being saved by this plugin. Use this code example to exclude some fields from being captured as abandoned entries.
add_filter('frm_abandonment_exclude_field_types', 'frm_abandonment_exclude_field_types');
function frm_abandonment_exclude_field_types($excluded_fields){
return array_merge($excluded_fields, array('number'));// This will exclude number field besides default password and credit_card fields.
}