gform_enable_entry_info_payment_details

gform_enable_entry_info_payment_details

DescriptionUsageParametersExamplesSource Code

Description
The 「gform_enable_entry_info_payment_details」 action enables the payment details panel for the current entry.

Removed: This hook was removed in version 2.0 with no replacement. The payment/subscription details panel is now displayed automatically if the entry payment status is set.

Usage
1add_action( 'gform_enable_entry_info_payment_details', 'my_function', 10, 2 );

Parameters

$is_enabled bool
Returns true if the payment info details are enabled for the entry.

$entry object
Entry object for the displayed entry.

Examples
1234567function my_function($is_enabled, $entry) {    if( ! empty( $entry['payment_status'] ) ) {        // Do something    }    return true;}add_action( 'gform_enable_entry_info_payment_details', 'my_function', 10, 2 );
Source Code
This action hook is located in entry_detail.php

發表回覆

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