reCAPTCHA::is_configured()

Performs a basic check whether reCAPTCHA is configured with a public key and secret key.

Description

It does not check whether these are actually correct though.

See also

Return

(bool) True if reCAPTCHA is configured, false otherwise.

Source

File: src/modules/protectors/recaptcha.php

	protected function is_configured() {
		$options = $this->get_options();

		return ! empty( $options['site_key'] ) && ! empty( $options['secret_key'] );
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.