Simple CAPTCHA with Cloudflare Turnstile icon
Security

Simple CAPTCHA with Cloudflare Turnstile hooks reference

  • By Elliot Sowersby / RelyWP
  • v1.44.6 New
  • Updated

Simple CAPTCHA with Cloudflare Turnstile 1.44.6 has 7 actions and 11 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Simple CAPTCHA with Cloudflare Turnstile fires an action
add_action( 'cfturnstile_after_check', function( $recaptcha_resp_obj, $results, $form_action ) {
	// Your code runs here.
}, 10, 3 );

// Change a value Simple CAPTCHA with Cloudflare Turnstile is about to use
add_filter( 'cfturnstile_widget_disable', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • inc/failsafe.php line 79 · used in 5 places
    do_action( 'cfturnstile_after_check', $recaptcha_resp_obj, $results, $form_action );
  • inc/integrations/community/wpdiscuz.php line 10 · used in 3 places
    do_action( 'cfturnstile_enqueue_scripts' );
  • inc/integrations/ecommerce/woocommerce.php line 279 · used in 3 places
    apply_filters( 'cfturnstile_widget_disable', false );
  • inc/failsafe.php line 45 · used in 2 places
    do_action( 'cfturnstile_after_field', esc_attr($unique_id), '' );
  • inc/failsafe.php line 39 · used in 2 places
    do_action( 'cfturnstile_before_field', esc_attr($unique_id) );
  • inc/admin/register-settings.php line 259
    apply_filters( 'active_plugins', get_option( 'active_plugins' ) );
  • simple-cloudflare-turnstile.php line 171
    do_action( 'cfturnstile_enqueue_scripts_custom' );
  • inc/integrations/ecommerce/woocommerce.php line 105
    apply_filters( 'cfturnstile_is_partial_checkout_render', $partial );
  • inc/integrations/ecommerce/woocommerce.php line 508
    apply_filters( 'cfturnstile_skip_on_express_pay', ( ($payment_method === 'woocommerce_payments' || $payment_method === 'stripe') && $express_detected ), $payment_method, $payment_data, $request );
  • simple-cloudflare-turnstile.php line 90
    apply_filters( 'cfturnstile_token_refresh_skip_forms', 'form.checkout, form.woocommerce-checkout, form.wc-block-checkout__form' );
  • inc/whitelist.php line 15
    apply_filters( 'cfturnstile_whitelisted', false );
  • inc/integrations/ecommerce/woocommerce.php line 564
    apply_filters( 'cfturnstile_woo_deferred_checkout_expiry', 900 );
  • inc/integrations/ecommerce/woocommerce.php line 193
    apply_filters( 'cfturnstile_woo_deferred_checkout_markers', array( 'globalpayments_gpapi_checkout_validated', ) );
  • inc/wordpress.php line 80
    apply_filters( 'cfturnstile_wp_login_checks', false );
  • inc/wordpress.php line 98
    do_action( 'cfturnstile_wp_login_failed' );
  • inc/wordpress.php line 218
    apply_filters( 'cfturnstile_wp_register_checks', false );
  • inc/admin/admin-options.php line 2190
    apply_filters( 'cfturnstile-settings-not-installed', $not_installed );
  • inc/admin/admin-options.php line 2189
    do_action( 'cfturnstile-settings-section' );

Generated from Simple CAPTCHA with Cloudflare Turnstile's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: