gform_recaptcha_language

gform_recaptcha_language

DescriptionUsageParametersExamplesPlacementSource Code

Description
Use this filter to change the language used for the reCAPTCHA field.

Important: This filter has been removed. The recaptcha language can be configured in the form editor by editing the field or by using the gform_pre_render filter to set the $field->captchaLanguage property.

Usage
123
Parameters

$language string
Must be a language code supported by Google reCAPTCHA – https://developers.google.com/recaptcha/docs/language

$form_id integer
The current Form ID.

Examples
This example changes the language used for the reCAPTCHA field to Brazilian Portuguese.
12345678
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in includes/fields/class-gf-field-captcha.php

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注