wpcf7_admin_warnings_recaptcha_v2_v3()CF7 1.0

Prints warnings on the admin screen.

Хуков нет.

Возвращает

null. Ничего.

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

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

Код wpcf7_admin_warnings_recaptcha_v2_v3() CF7 5.6.4

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

	$message = sprintf(
		esc_html( __(
			"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' )
		)
	);

	echo sprintf(
		'<div class="notice notice-warning"><p>%s</p></div>',
		$message
	);
}