Description
The “gform_order_label” filter in Gravity Forms is executed when displaying the “Order” heading on the entry detail page or when sending the order information via email.
Usage
Applies to all forms
add_filter( 'gform_order_label', 'change_order_label', 10, 2 );
Applies to a specific form. In this case, form Id 5
add_filter( 'gform_order_label_5', 'change_order_label', 10, 2 );
Parameters
Examples
This example changes the default Order label to Estimate;
add_filter( 'gform_order_label', 'change_order_label', 10, 2 ); function change_order_label( $label, $form_id ) { return 'Estimate'; }
Source Code
This filter is located in the following methods:
- GFCommon::get_submitted_pricing_fields() in common.php
- GFEntryDetail::lead_detail_grid() in entry_detail.php