Gform enable password field

Description

Use this filter to enable the password field. Useful when developing add-ons that require a password field.

Usage

<?php
add_action("gform_enable_password_field", "enable_password");
?>

Parameters

$is_enabled

(bool) Value to be filtered. True enables the password field, false disables it.

Examples

This example enables the password field

<?php
add_action("gform_enable_password_field", "enable_password_field");
function enable_password_field($is_enabled){
	return true;
}

?>

Source Code

This action hook is located in form_detail.php

Search the Documentation