# patchstack/2.1.7/includes/views/captcha_invisible.php

Patchstack – WordPress &amp; Plugins Security, version 2.1.7. 20 lines.

- Page: https://pluginprobe.com/plugins/patchstack/2.1.7/code/includes/views/captcha_invisible.php
- Raw: https://pluginprobe.com/plugins/patchstack/2.1.7/raw/includes/views/captcha_invisible.php
- Modified: 2021-11-01T08:59:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/patchstack/2.1.7/code/includes/views/captcha_invisible.php#L10-L20`.

```php
<?php
// Do not allow the file to be called directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback" async defer></script>
<script>
	var onloadCallback = function() {
		grecaptcha.execute();
	}
	
	function setResponse(response) {
		document.getElementById("captcha-response").value = response; 
	}
	
</script>
<div class="g-recaptcha" data-sitekey="<?php echo esc_attr( $site_key ); ?>"  data-size="invisible" data-callback="setResponse"></div>
<input type="hidden" id="captcha-response" name="captcha-response" />

```
