From 596765efa98ea1607a69a3e02977f5c1ae4eb553 Mon Sep 17 00:00:00 2001 From: Oliver Baran Date: Fri, 19 Aug 2022 10:39:26 +0200 Subject: [PATCH] Adds new apply_filter for hidden_fields --- src/db-objects/forms/form-frontend-output-handler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/db-objects/forms/form-frontend-output-handler.php b/src/db-objects/forms/form-frontend-output-handler.php index b0effe5e4..e01d478b3 100644 --- a/src/db-objects/forms/form-frontend-output-handler.php +++ b/src/db-objects/forms/form-frontend-output-handler.php @@ -257,6 +257,8 @@ protected function render_form_content( $form, $submission = null ) { $template_data['hidden_fields'] .= ''; } + $template_data['hidden_fields'] = apply_filters("{$prefix}hidden_fields", $template_data['hidden_fields'], $form, $submission); + /** * Filters the CSS class to use for every button for a form in the frontend. *