Skip to content

Commit

Permalink
gw-format-date-merge-tags.php: Added snippet to be limited by `form…
Browse files Browse the repository at this point in the history
…_id` settings.
  • Loading branch information
barthc authored and saifsultanc committed Jan 11, 2025
1 parent 5721c5a commit 17d0042
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gravity-forms/gw-format-date-merge-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ public function init() {
}

public function replace_merge_tags( $text, $form, $entry, $url_encode, $esc_html, $nl2br, $format ) {
if ( ! $this->is_applicable_form( $form ) ) {
return $text;
}

$current_locale = determine_locale();
$locale = $this->_args['locale'];
if ( $locale ) {
Expand Down

0 comments on commit 17d0042

Please sign in to comment.