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

發表回覆

您的郵箱地址不會被公開。 必填項已用 * 標註