From e9112e2fd8767da1426a1748d63b91afeabea079 Mon Sep 17 00:00:00 2001 From: carpentryplus25 Date: Tue, 10 Mar 2026 22:55:24 -0400 Subject: [PATCH] Contact Form 7 Strenghting --- dapper.php | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/dapper.php b/dapper.php index bc64ddb..5f7bf5e 100644 --- a/dapper.php +++ b/dapper.php @@ -1239,6 +1239,110 @@ if (class_exists('WPCF7')) { + + + +

Quick check to help stop spam. Thanks!

+ '; + + // Insert just before the submit button / + $form = preg_replace( '/(]*type=["\']submit["\'][^>]*>.*?<\/button>)/is', $checkbox_html . '$1', $form ); + + // Fallback: if no