Function Reference: geodir_recaptcha_display

Summary

Displays ReCaptcha form code.

Global Values

$bp
(object) (required) BuddyPress object.

Default: None

Package

GeoDirectory_ReCaptcha

Parameters

$form
(string) (required) The form name.

Default: None
$extra_class
(string) (required) Extra HTML classes.

Default: None

Change Log

Since: 1.0.0

Filters

‘geodir_recaptcha_captcha_title’ [Line: 93]

Source File

geodir_recaptcha_display() is located in geodir_recaptcha/includes/gdcaptcha_template_functions.php [Line: 78]

Source Code

function geodir_recaptcha_display( $form, $extra_class='' ) {
	$site_key = get_option( 'geodir_recaptcha_site_key' );
	$secret_key = get_option( 'geodir_recaptcha_secret_key' );
	
	if ( strlen( $site_key ) > 10 && strlen( $secret_key ) > 10 ) {
		$captcha_title = get_option( 'geodir_recaptcha_title' );
				
		$language = geodir_recaptcha_language();
		$captcha_theme = geodir_recaptcha_theme();
        /**
         * Filters the recaptcha title.
         *
         * @since 1.0.0
         * @package GeoDirectory_ReCaptcha
         */
		$captcha_title = apply_filters( 'geodir_recaptcha_captcha_title', $captcha_title );
		
		$ajax = ( defined( 'DOING_AJAX' ) && DOING_AJAX );
		$div_id = 'gdcaptcha_' . $form;
		?>
		
signup->errors['gd_recaptcha_field'] ) ) { ?>
signup->errors['gd_recaptcha_field'];?>
here and enter keys in the plugin settings page at here' ), $plugin_settings_link ); ?>