Created
July 9, 2020 08:51
-
-
Save alex-authlab/ce28298bb2650f7c427864a43e12be6a to your computer and use it in GitHub Desktop.
Fluent Form field data input filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'fluenform_rendering_field_data_input_text', function($data,$form){ | |
$custom = ['value'=>'Hello','readonly'=>'true']; | |
$data['attributes'] =array_merge($data['attributes'] ,$custom); | |
return $data; | |
},10,2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment