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
Parameter | Type | Description |
---|---|---|
$trial_description | string | The trial description text. |
$form | array | The form object to filter through. |
$entry | array | The 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;
}

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.