Hi @obtrusive170,
Yes, plugins like Code Snippets automatically add the <?php part, so you don’t need to include the first line of the snippet I shared above.
I’m not sure if you seen my other topic, but in case you’re interested, I’ve managed to come up with a working Cloudflare Turnstile bridge for HivePress.
“Cloudflare Turnstile is a free, privacy-first CAPTCHA alternative that verifies human users without forcing them to solve puzzles like selecting traffic lights or typing blurry text. It uses invisible, background JavaScript challenges—like proof-of-work tests and browser API probing—to analyze client behavior and distinguish real users from automated bots.”
You can also read more about Cloudflare Turnstile here.
I hope this helps!
Cheers,
Chris ![]()