Skip to content

Commit 17d0042

Browse files
barthcsaifsultanc
authored andcommitted
gw-format-date-merge-tags.php: Added snippet to be limited by form_id settings.
1 parent 5721c5a commit 17d0042

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gravity-forms/gw-format-date-merge-tags.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ public function init() {
3434
}
3535

3636
public function replace_merge_tags( $text, $form, $entry, $url_encode, $esc_html, $nl2br, $format ) {
37+
if ( ! $this->is_applicable_form( $form ) ) {
38+
return $text;
39+
}
40+
3741
$current_locale = determine_locale();
3842
$locale = $this->_args['locale'];
3943
if ( $locale ) {

0 commit comments

Comments
 (0)