Home / Admin / WP Simple Pay: Lower reCAPTCHA Threshold
Duplicate Snippet

Embed Snippet on Your Site

WP Simple Pay: Lower reCAPTCHA Threshold

Adjusts the reCAPTCHA v3 threshold for determining fraudulent interactions.

1.0 is very likely a good interaction, 0.0 is very likely a bot
For more information visit https://developers.google.com/recaptcha/docs/v3

Code Preview
php
<?php
/**
 * @link https://library.wpcode.com/snippet/qo9eyj21/
 */
add_filter(
	'simpay_recpatcha_minimum_score',
	/**
	 * @param string $threshold Threshold. Default 0.5
	 * @return string
	 */
	function( $threshold ) {
		return '0.3';
	}
);

Comments

Add a Comment