wpcf7_spam_protection() │ CF7 1.0

Defines the "Spam Protection" dashboard widget content.

Хуков нет.

Возвращает

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

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

wpcf7_spam_protection();

Код wpcf7_spam_protection() CF7 6.2.4.1

function wpcf7_spam_protection() {
	$formatter = new WPCF7_HTMLFormatter();

	$formatter->append_start_tag( 'p' );

	$formatter->append_preformatted(
		__( 'Spammers target everything. Your contact forms are not an exception.', 'contact-form-7' )
	);

	$formatter->append_start_tag( 'p' );

	$formatter->append_preformatted(
		sprintf(
			/* translators: 1: URL to the Turnstile doc page, 2: URL to the Akismet doc page */
			__( 'To provide effective protection, Contact Form 7 recommends using <a href="%1$s"><strong>Turnstile</strong></a> (good at blocking bots) and <a href="%2$s"><strong>Akismet</strong></a> (good at blocking human spammers) together.', 'contact-form-7' ),
			'https://contactform7.com/turnstile-integration/',
			'https://contactform7.com/spam-filtering-with-akismet/'
		)
	);

	$formatter->append_start_tag( 'p' );

	$formatter->append_preformatted(
		sprintf(
			/* translators: %s: URL to the Disallowed list doc page */
			__( 'You can also block submissions that contain specific keywords or come from specific IP addresses (<a href="%s"><strong>Disallowed list</strong></a>).', 'contact-form-7' ),
			'https://contactform7.com/comment-blacklist/'
		)
	);

	$formatter->print();
}