gform_order_label

gform_order_label

DescriptionUsageParametersExamplesSource Code

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
1add_filter( 'gform_order_label', 'change_order_label', 10, 2 );
Applies to a specific form. In this case, form Id 5
1add_filter( 'gform_order_label_5', 'change_order_label', 10, 2 );
Parameters

$label string
The label to be filtered.

$form_id integer
The current form』s id.

Examples
This example changes the default Order label to Estimate;
1234add_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

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註