WPCF7_Akismet::displaypublicCF7 1.0

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

Хуков нет.

Возвращает

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

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

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

Код WPCF7_Akismet::display() CF7 6.1.6

public function display( $action = '' ) {
	$formatter = new WPCF7_HTMLFormatter();

	$formatter->append_start_tag( 'p' );

	$formatter->append_preformatted(
		esc_html( __( 'CAPTCHAs are designed to distinguish spambots from humans, and are therefore helpless against human spammers. In contrast to CAPTCHAs, Akismet checks form submissions against the global database of spam; this means Akismet is a comprehensive solution against spam. This is why we consider Akismet to be the centerpiece of the spam prevention strategy.', 'contact-form-7' ) )
	);

	$formatter->end_tag( 'p' );

	$formatter->append_start_tag( 'p' );
	$formatter->append_start_tag( 'strong' );

	$formatter->append_preformatted(
		wpcf7_link(
			__( 'https://contactform7.com/spam-filtering-with-akismet/', 'contact-form-7' ),
			__( 'Spam filtering with Akismet', 'contact-form-7' )
		)
	);

	$formatter->end_tag( 'p' );

	if ( $this->is_active() ) {
		$formatter->append_start_tag( 'p', array(
			'class' => 'dashicons-before dashicons-yes',
		) );

		$formatter->append_preformatted(
			esc_html( __( 'Akismet is active on this site.', 'contact-form-7' ) )
		);

		$formatter->end_tag( 'p' );
	}

	$formatter->print();
}