AI要約
説明
wpforms_frontend_recaptcha_disable フィルターを使用すると、フロントエンドでの reCAPTCHA の読み込みと初期化を無効にできます。これは、reCAPTCHA を実行すべきでない自動テストや管理された環境に役立ちます。
このフィルターは、reCAPTCHA アセットと初期化の読み込みを防止します。処理中に CAPTCHA チェックをスキップしたい場合は、wpforms_process_bypass_captcha フィルターと組み合わせて使用してください。
| パラメーター | タイプ | 説明 |
|---|---|---|
$is_captcha_disabled | bool | フロントエンドで reCAPTCHA を無効にするかどうか。デフォルトは false です。 |
ソース
wpforms\src\Frontend\Captcha.php
例
/**
* Disable reCAPTCHA on the frontend for automated testing.
*/
add_filter( 'wpforms_frontend_recaptcha_disable', '__return_true' );
/* Also skip backend verification if needed */
// add_filter( 'wpforms_process_bypass_captcha', '__return_true' );