From db1828e2a70420ca9a05b5ad22b69ec87038208a Mon Sep 17 00:00:00 2001 From: Nico Mollet Date: Wed, 26 Jul 2017 16:08:48 +0200 Subject: [PATCH] Gravity Forms: fix submit button with conditions --- inc/plugins/gravityforms.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/inc/plugins/gravityforms.php b/inc/plugins/gravityforms.php index 447ea94..347eb3a 100644 --- a/inc/plugins/gravityforms.php +++ b/inc/plugins/gravityforms.php @@ -51,9 +51,14 @@ function stormbringer_gform_field_css_class($classes, $field, $form) } add_action('gform_field_css_class', 'stormbringer_gform_field_css_class', 10, 3); -// This filter is executed when the form is displayed and can be used to completely -//change the form button tag (i.e. ). - +/** + * Gravity Forms Submit Button + * + * @param $button + * @param $form + * + * @return mixed|string + */ function stormbringer_gform_submit_button($button, $form) { //$button = str_replace('