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 "Qty" heading
Usage
<?php
add_filter("gform_product_qty", "change_qty", 10, 2);
?>
Parameters
$label
- (string) The label to be filtered.
$form_id
- (int) The current form's id.
Examples
This example changes the default Qty label;
<?php
add_filter("gform_product_qty", "change_qty", 10, 2);
function change_qty($label, $form_id){
return "Quantity";
}
?>
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in common.php and entry_detail.php