WP Simple Pay: Hide reCAPTCHA Badge

/** * @link https://library.wpcode.com/snippet/ro8w3kow/ */ add_action( ‘simpay_form_before_form_bottom’, function() { ?> This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.Continue reading

WP Simple Pay: Lower reCAPTCHA Threshold

/** * @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’; } );Continue reading

Defer the reCAPTCHA Script

/** * Defer the reCAPTCHA script until after the page loads * * @link https://wpforms.com/developers/how-to-defer-the-recaptcha-script/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_recaptcha_add_async_defer( $tag, $handle ) { if ( strpos( $tag, ‘recaptcha/api.js?onload=wpformsRecaptchaLoad’ ) !== false ) { $tag…Continue reading

Set the Language for Google reCAPTCHA

/** * Set the language reCAPTCHA * * @link https://wpforms.com/developers/how-to-set-the-language-for-google-recaptcha/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_recaptcha_language( $url ) { // Set the language code to FR (French) // To find your language code, please visit https://developers.google.com/recaptcha/docs/language…Continue reading