Table of Contents
Description #
This filter checks whether the password input should be truncated or not.
apply_filters('fluentform/truncate_password_values', true, $form);
Usage #
add_filter('fluentform/truncate_password_values', function($status, $form){
if ($form->id == 5) {
$status = false;
}
return $status;
}, 10, 2);
Parameters #
- $status (boolean) Status
- $form (object) Form Object
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)