wpcf7_admin_warnings_recaptcha_v2_v3()
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() wpcf7 admin warnings recaptcha v2 v3 CF7 5.9.3
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 ); }