From 03d520f148ebd280e5b6d6355c6e657f0675c96d Mon Sep 17 00:00:00 2001 From: riteelama Date: Tue, 9 Dec 2025 12:41:50 +0545 Subject: [PATCH] Fix - entry_id smart tag not working for redirect url in form confirmation --- includes/class-evf-smart-tags.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/class-evf-smart-tags.php b/includes/class-evf-smart-tags.php index 985d8d0f4..898901c25 100644 --- a/includes/class-evf-smart-tags.php +++ b/includes/class-evf-smart-tags.php @@ -569,7 +569,12 @@ public function process( $content, $form_data, $fields = '', $entry_id = '' ) { break; case 'entry_id': - $content = str_replace( '{' . $other_tag . '}', $entry_id, $content ); + if ( ! empty( $entry_id ) ) { + $content = str_replace( '{' . $other_tag . '}', $entry_id, $content ); + } else { + $form_entry_id = ! empty( $form_data['entry']['id'] ) ? absint( $form_data['entry']['id'] ) : ''; + $content = str_replace( '{' . $other_tag . '}', $form_entry_id, $content ); + } break; default: