Description #
This filter checks whether the password input should be truncated or not.
apply_filters('fluentform/truncate_password_values', true, $formId);
Usage #
add_filter('fluentform/truncate_password_values', function($status, $formId){
if ($formId == 5) {
$status = false;
}
return $status;
}, 10, 2);
Parameters #
- $status (boolean) Status
- $formId (int) Form ID
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in FluentForm\App\Helpers\Helper -> shouldHidePassword($formId)