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 list of all fields in the form that is used in the entry values.
Usage
add_filter( 'frm_entry_values_fields', 'sort_remove_fields');
Parameters
- $fields (array): The list of fields
- $args (array): Includes `form_id` and `entry`.
Examples
Sort or remove fields
add_filter( 'frm_entry_values_fields', 'sort_remove_fields', 10, 2 );
function sort_remove_fields( $fields, $args ) {
// Do anything with the $fields.
// Your code here...
return $fields;
}