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.
This hook allows modifying the included field IDs used in the entry values.
Usage
add_filter( 'frm_entry_values_include_fields', 'specify_include_fields');
Parameters
- $field_ids (array): The list of field IDs
- $atts (array): You can check method FrmEntryFormatter::prepare_entry_attributes() for more details.
Examples
Specify a field to include
add_filter( 'frm_entry_values_include_fields', 'specify_include_fields', 10, 2 );
function specify_include_fields( $field_ids, $atts ) {
$field_ids[] = 13;
return $field_ids;
}