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.
// 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
-
cfturnstile_after_check
actiondo_action( 'cfturnstile_after_check', $recaptcha_resp_obj, $results, $form_action ); -
cfturnstile_enqueue_scripts
actiondo_action( 'cfturnstile_enqueue_scripts' ); -
cfturnstile_widget_disable
filterapply_filters( 'cfturnstile_widget_disable', false ); -
cfturnstile_after_field
actiondo_action( 'cfturnstile_after_field', esc_attr($unique_id), '' ); -
cfturnstile_before_field
actiondo_action( 'cfturnstile_before_field', esc_attr($unique_id) ); -
active_plugins
filterapply_filters( 'active_plugins', get_option( 'active_plugins' ) ); -
do_action( 'cfturnstile_enqueue_scripts_custom' ); -
apply_filters( 'cfturnstile_is_partial_checkout_render', $partial ); -
apply_filters( 'cfturnstile_skip_on_express_pay', ( ($payment_method === 'woocommerce_payments' || $payment_method === 'stripe') && $express_detected ), $payment_method, $payment_data, $request ); -
apply_filters( 'cfturnstile_token_refresh_skip_forms', 'form.checkout, form.woocommerce-checkout, form.wc-block-checkout__form' ); -
cfturnstile_whitelisted
filterapply_filters( 'cfturnstile_whitelisted', false ); -
apply_filters( 'cfturnstile_woo_deferred_checkout_expiry', 900 ); -
apply_filters( 'cfturnstile_woo_deferred_checkout_markers', array( 'globalpayments_gpapi_checkout_validated', ) ); -
cfturnstile_wp_login_checks
filterapply_filters( 'cfturnstile_wp_login_checks', false ); -
cfturnstile_wp_login_failed
actiondo_action( 'cfturnstile_wp_login_failed' ); -
apply_filters( 'cfturnstile_wp_register_checks', false ); -
apply_filters( 'cfturnstile-settings-not-installed', $not_installed ); -
cfturnstile-settings-section
actiondo_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: