Description
Use this filter to enable Turnstile’s No-Conflict mode, which dequeues other CAPTCHA scripts to avoid conflicts.
Note: This filter should only be used at Gravity Forms’ support’s direction.
Usage
add_filter( 'gform_turnstile_enable_no_conflict', 'your_function_name', 10, 1 );
Parameters
Parameter | Type | Description |
---|---|---|
$enabled | bool | Whether no-conflict mode is enabled. |
Examples
Enable No-Conflict mode for Turnstile.
add_filter( 'gform_turnstile_enable_no_conflict', '__return_true' );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Since
This filter was added in Gravity Forms Turnstile 1.0.
Source Code
This filter is located in GFTurnstile::handle_no_conflict() in class-gf-turnstile.php.