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.2.4.1

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

	wp_admin_notice(
		sprintf(
			/* translators: %s: URL to support page about reCAPTCHA */
			__( '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 <a href="%s">reCAPTCHA (v3)</a>.', 'contact-form-7' ),
			'https://contactform7.com/recaptcha/'
		),
		array( 'type' => 'warning' )
	);
}