Description
This filter is executed when displaying the order information grid on the entry detail page and notification emails. Use this filter to modify the “Product” heading.
Usage
1 | add_filter( 'gform_product' , 'change_product' , 10, 2 ); |
Examples
This example changes the default Product label:
1 2 3 4 | add_filter( 'gform_product' , 'change_product' , 10, 2 ); function change_product( $label , $form_id ) { return 'Services' ; } |
Placement
This code should be placed in the functions.php file of your active theme.
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