gform_subscription_details_trial_description

Description

The gform_subscription_details_trial_description filter allows customization of the trial description text in the subscription details on the entry detail page.

Usage

add_filter( 'gform_subscription_details_trial_description', 'your_function_name', 10, 3 );

Parameters

ParameterTypeDescription
$trial_descriptionstringThe trial description text.
$formarrayThe form object to filter through.
$entryarrayThe lead object to filter through.

Example

Customize the trial description.

add_filter( 'gform_subscription_details_trial_description', 'customize_trial_description', 10, 3 );
function customize_trial_description( $trial_description, $form, $entry ) {
    // Add custom text to the trial description
    $trial_description .= ' (Custom trial period)';
    
    return $trial_description;
}
Image showing custom message for the trial period.

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?

Source Code

This filter is located in entry_detail.php.