wpcf7_admin_init_recaptcha_v2_v3()CF7 1.0

Adds filters and actions for warnings.

Хуков нет.

Возвращает

null. Ничего.

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

wpcf7_admin_init_recaptcha_v2_v3();

Код wpcf7_admin_init_recaptcha_v2_v3() CF7 5.6.4

function wpcf7_admin_init_recaptcha_v2_v3() {
	if ( ! WPCF7::get_option( 'recaptcha_v2_v3_warning' ) ) {
		return;
	}

	add_filter(
		'wpcf7_admin_menu_change_notice',
		'wpcf7_admin_menu_change_notice_recaptcha_v2_v3',
		10, 1
	);

	add_action(
		'wpcf7_admin_warnings',
		'wpcf7_admin_warnings_recaptcha_v2_v3',
		5, 3
	);
}