wpcf7_akismet_default_template()
Хуков нет.
Возвращает
null
. Ничего.
Использование
wpcf7_akismet_default_template( $template, $prop );
- $template (обязательный)
- -
- $prop (обязательный)
- -
Код wpcf7_akismet_default_template() wpcf7 akismet default template CF7 5.7.3
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; }