gform_form_summary

gform_form_summary

DescriptionParametersExamplesOrder Forms By Total EntriesPlacementSinceSource Code

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
12345678910add_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

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注