Skip to content
Jon Waldstein edited this page Sep 30, 2024 · 23 revisions

Overview

Demo Video

https://www.loom.com/share/1e910e46a9fd4c189a2a3bb26d1056bd?sid=5590171a-bd97-41c9-ba65-654e57f95f1e

Testing

Initial Zip

Cloudflare instructions

  1. Log in to your Cloudflare dashboard and select your account.
  2. Go to Turnstile and create a new Turnstile widget.
  3. Copy the site key and the secret key to use in the GiveWP settings.

GiveWP Setup instructions

Currently you can turn this on programmatically or using settings:

Settings Screenshot 2024-09-30 at 11 02 28 AM

Or add the following to a mu-plugin or functions file:

add_filter('give_cloudflare_turnstile_enabled', '__return_true');

Replace the following API keys with your Cloudflare Turnstile Site Key and Secret Key to add in wp-config.php: (The current values are for testing purposes only.)

You can also test out test keys: https://developers.cloudflare.com/turnstile/troubleshooting/testing/

define('GIVE_TURNSTILE_SITE_KEY', '0x4AAAAAAAkKVAClSfWgKKSy');
define('GIVE_TURNSTILE_SECRET_KEY', '0x4AAAAAAAkKVKxbDHB4JJNJy-Laa1brdLM');

Create a v3 form and you should see the widget before the submit button (unless it's in invisible mode)

Screenshot 2024-09-20 at 11 02 04 AM
Clone this wiki locally