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

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

- Page: https://pluginprobe.com/plugins/patchstack/2.1.7/code/includes/views/captcha_v3.php
- Raw: https://pluginprobe.com/plugins/patchstack/2.1.7/raw/includes/views/captcha_v3.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_v3.php#L10-L20`.

```php
<?php
// Do not allow the file to be called directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<script id="gRecaptchaSrc" src="https://www.google.com/recaptcha/api.js?render=<?php echo esc_attr( $site_key ); ?>"></script>
<script>
	grecaptcha.ready(function() {
		grecaptcha.execute('<?php echo esc_attr( $site_key ); ?>', {action: 'submit'}).then(function(token) {
			document.getElementById("g-recaptcha-response").value = token; 
		});
	});
</script>
<input type="hidden" id="g-recaptcha-response" name="g-recaptcha-response" />

```
