wpcf7_recaptcha_enqueue_scripts
The Contact Form 7 wpcf7 recaptcha enqueue scripts function.
Description
wpcf7_recaptcha_enqueue_scripts();
Usage
if ( !function_exists( 'wpcf7_recaptcha_enqueue_scripts' ) ) { require_once ABSPATH . PLUGINDIR . 'contact-form-7/modules/recaptcha.php'; } // NOTICE! Understand what this does before running. $result = wpcf7_recaptcha_enqueue_scripts();
Defined (1)
The function is defined in the following location(s).
- /modules/recaptcha.php
- function wpcf7_recaptcha_enqueue_scripts() {
- $url = 'https://www.google.com/recaptcha/api.js';
- $url = add_query_arg( array(
- 'onload' => 'recaptchaCallback',
- 'render' => 'explicit' ), $url );
- wp_register_script( 'google-recaptcha', $url, array(), '2.0', true );
- }