wpcf7_admin_warnings_recaptcha_v2_v3()CF7 1.0

Prints warnings on the admin screen.

Хуков нет.

Возвращает

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

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

wpcf7_admin_warnings_recaptcha_v2_v3( $page, $action, $object );
$page(обязательный)
.
$action(обязательный)
.
$object(обязательный)
.

Код wpcf7_admin_warnings_recaptcha_v2_v3() CF7 6.1.5

function wpcf7_admin_warnings_recaptcha_v2_v3( $page, $action, $object ) {
	if ( 'wpcf7-integration' !== $page ) {
		return;
	}

	wp_admin_notice(
		sprintf(
			/* translators: %s: link labeled 'reCAPTCHA (v3)' */
			__( 'API keys for reCAPTCHA v3 are different from those for v2; keys for v2 do not work with the v3 API. You need to register your sites again to get new keys for v3. For details, see %s.', 'contact-form-7' ),
			wpcf7_link(
				__( 'https://contactform7.com/recaptcha/', 'contact-form-7' ),
				__( 'reCAPTCHA (v3)', 'contact-form-7' )
			)
		),
		array( 'type' => 'warning' )
	);
}