Description
The filter gform_post_tags_hint is used to change description displayed for the Post Tags field.
Usage
The base filter which would run for all forms and all fields would be used like so:
add_filter( 'gform_post_tags_hint', 'your_function_name' );
To target a specific form append the form id to the hook name. (format: gform_post_tags_hint_FORMID)
add_filter( 'gform_post_tags_hint_10', 'your_function_name' );
To target a specific field append both the form id and the field id to the hook name. (format: gform_post_tags_hint_FORMID_FIELDID)
add_filter( 'gform_post_tags_hint_10_3', 'your_function_name' );
Parameters
| Parameter | Type | Description |
|---|---|---|
$post_tag_hint | string | The helper text shown for the field. |
Example
Remove help text.
add_filter( 'gform_post_tags_hint', '__return_empty_string' );
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GF_Field_Text::get_field_input() in includes/fields/class-gf-field-text.php