gform_counter_script

gform_counter_script

DescriptionUsageParametersExamplesPlacementSource Code

Description
Use this filter to change the initialization script for the textarea counter script. Can be used to specify different initialization parameters.
Usage
1add_filter( 'gform_counter_script', 'set_counter_script', 10, 5 );
You can also target a specific form by adding the form id after the hook name.
1add_filter( 'gform_counter_script_6', 'set_counter_script', 10, 5 );
Parameters

$script string
The script (including