wpcf7_recaptcha_add_form_tag_recaptcha()CF7 1.0

Registers form-tag types for reCAPTCHA.

Хуков нет.

Возвращает

null. Ничего.

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

wpcf7_recaptcha_add_form_tag_recaptcha();

Код wpcf7_recaptcha_add_form_tag_recaptcha() CF7 5.6.4

function wpcf7_recaptcha_add_form_tag_recaptcha() {
	$service = WPCF7_RECAPTCHA::get_instance();

	if ( ! $service->is_active() ) {
		return;
	}

	wpcf7_add_form_tag( 'recaptcha',
		'__return_empty_string', // no output
		array( 'display-block' => true )
	);
}