Skip to content

Commit c50ec8d

Browse files
committed
gw-all-fields-template: Added function for getting original entry for use in custom templates.
1 parent 8fdf22a commit c50ec8d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gravity-forms/gw-all-fields-template.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Plugin URI: https://gravitywiz.com/gravity-forms-all-fields-template/
99
* Description: Modify the {all_fields} merge tag output via a template file.
1010
* Author: Gravity Wiz
11-
* Version: 0.12
11+
* Version: 0.13
1212
* Author URI: http://gravitywiz.com
1313
*
1414
* Usage:
@@ -291,6 +291,10 @@ public function save_original_entry( $entry, $original_entry ) {
291291
$this->original_entry = $original_entry;
292292
}
293293

294+
public function get_original_entry() {
295+
return $this->original_entry;
296+
}
297+
294298
public function replace_merge_tags( $text, $form, $entry, $url_encode, $esc_html, $nl2br, $format ) {
295299

296300
$matches = array();

0 commit comments

Comments
 (0)