WPCF7_RECAPTCHA::display()publicCF7 1.0

Метод класса: WPCF7_RECAPTCHA{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPCF7_RECAPTCHA = new WPCF7_RECAPTCHA();
$WPCF7_RECAPTCHA->display( $action );
$action **
-
По умолчанию: ''

Код WPCF7_RECAPTCHA::display() CF7 5.9.3

public function display( $action = '' ) {
	echo sprintf(
		'<p>%s</p>',
		esc_html( __( "reCAPTCHA protects you against spam and other types of automated abuse. With Contact Form 7&#8217;s reCAPTCHA integration module, you can block abusive form submissions by spam bots.", 'contact-form-7' ) )
	);

	echo sprintf(
		'<p><strong>%s</strong></p>',
		wpcf7_link(
			__( 'https://contactform7.com/recaptcha/', 'contact-form-7' ),
			__( 'reCAPTCHA (v3)', 'contact-form-7' )
		)
	);

	if ( $this->is_active() ) {
		echo sprintf(
			'<p class="dashicons-before dashicons-yes">%s</p>',
			esc_html( __( "reCAPTCHA is active on this site.", 'contact-form-7' ) )
		);
	}

	if ( 'setup' == $action ) {
		$this->display_setup();
	} else {
		echo sprintf(
			'<p><a href="%1$s" class="button">%2$s</a></p>',
			esc_url( $this->menu_page_url( 'action=setup' ) ),
			esc_html( __( 'Setup Integration', 'contact-form-7' ) )
		);
	}
}