Skip to main content

Filter: gform_replace_merge_tags

Allow the text to be filtered so custom merge tags can be replaced.

Parameters

NameTypeDescription
$textstringThe text in which merge tags are being processed.
$formfalse|arrayThe Form object if available or false.
$entryfalse|arrayThe Entry object if available or false.
$url_encodeboolIndicates if the urlencode function should be applied.
$esc_htmlboolIndicates if the esc_html function should be applied.
$nl2brboolIndicates if the nl2br function should be applied.
$formatstringThe format requested for the location the merge is being used. Possible values: html, text or url.

Source

Defined in common.php at line 1801