Captcha::enqueue_scripts()

Description #

Enqueue script.

Changelog #

VersionDescription
4.1.9Introduced.

Source #

File: addons/recaptcha/recaptcha.php

	public function enqueue_scripts() {
		wp_register_script( 'grecaptcha', 'https://www.google.com/recaptcha/api.js?hl=' . get_locale() . '&render=explicit' );
		wp_enqueue_script( 'ap-recaptcha', ANSPRESS_URL . 'addons/recaptcha/script.js', [], true );
	}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment