Description
The gform_enable_password_field filter is used to enable the password field. Useful when developing add-ons that require a password field.
Usage
add_filter( 'gform_enable_password_field', '__return_true' );
Parameters
| Parameter | Type | Description |
|---|---|---|
$is_enabled | bool | Value to be filtered. True enables the password field; false disables it. |
Examples
Enable the Password Field
add_filter( 'gform_enable_password_field', '__return_true' );
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?
Source Code
This action hook is located in form_detail.php.