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 you to modify the list of fields in the entries list table.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter( 'frm_fields_in_entries_list_table', 'my_custom_function');
Parameters
- $fields (array): The list of fields.
- $args (array): Include form_id.
Examples
Remove all Likert fields on one form
You can use the following example to remove all Likert fields from the entries list table on one form.
add_filter( 'frm_fields_in_entries_list_table', 'remove_likert_entries_table', 10, 2 );
function remove_likert_entries_table( $fields, $args ) {
if ( 13 != $args['form_id'] ) {
return $fields; // Do not modify fields if this is not the form you want.
}
foreach ( $fields as $index => $field ) {
$field = (object) $field;
if ( 'likert' === $field->type ) {
unset( $fields[ $index ] );
}
}
return $fields;
}