wpcf7_akismet_default_template()CF7 1.0

Хуков нет.

Возвращает

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

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

wpcf7_akismet_default_template( $template, $prop );
$template(обязательный)
.
$prop(обязательный)
.

Код wpcf7_akismet_default_template() CF7 6.1

function wpcf7_akismet_default_template( $template, $prop ) {
	if ( ! wpcf7_akismet_is_available() ) {
		return $template;
	}

	if ( 'form' === $prop ) {
		$template = str_replace(
			array(
				'[text* your-name ',
				'[email* your-email ',
			),
			array(
				'[text* your-name akismet:author ',
				'[email* your-email akismet:author_email ',
			),
			$template
		);

		$privacy_notice = sprintf( '%s %s',
			__( 'This form uses Akismet to reduce spam.', 'contact-form-7' ),
			wpcf7_link(
				'https://akismet.com/privacy/',
				__( 'Learn how your data is processed.', 'contact-form-7' ),
				array(
					'target' => '_blank',
					'rel' => 'nofollow noopener',
				)
			)
		);

		$template .= "\n\n" . $privacy_notice;
	}

	return $template;
}