Description
Filters through and allows modification of the forms displayed in the Dashboard Forms widget.
Parameters
- $forms array
Array containing all forms, including the unread entries count, total entries count and date of last entry submission.
Examples
Order Forms By Total Entries
add_filter( 'gform_form_summary', 'order_form_summary_by_total_entries', 10, 1 ); function order_form_summary_by_total_entries( $forms ) { usort( $forms, function( $a, $b ) { return $b['total_entries'] - $a['total_entries']; } ); return $forms; }
Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms version 2.4.16.
Source Code
This filter is located in GFFormsModel::get_form_summary in forms_model.php