From b1d3a2b142e7e9eca4d4949866d12674329f755e Mon Sep 17 00:00:00 2001 From: Bas Tolen <45830612+bastolen@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:27:36 +0200 Subject: [PATCH] Fixed issue where Code Chest overwrote 3rd-party values added via the `gform_form_after_open` filter. Credit: [Bas Tolen](https://github.com/bastolen). --- class-gwiz-gf-code-chest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class-gwiz-gf-code-chest.php b/class-gwiz-gf-code-chest.php index b011d8d..32ffd99 100644 --- a/class-gwiz-gf-code-chest.php +++ b/class-gwiz-gf-code-chest.php @@ -404,10 +404,10 @@ public function add_custom_css( $form_string, $form ) { } if ( ! empty( $custom_css ) ) { - return sprintf( '', $custom_css ); + return $form_string . sprintf( '', $custom_css ); } - return ''; + return $form_string; } public function is_applicable_form( $form ) {