Home › Forums › Front End PM PRO › Unable to remove "maxlength" and "minlength" requirements › Reply To: Unable to remove "maxlength" and "minlength" requirements
June 2, 2018 at 11:32 am
#14637
Shamim Hasan
Keymaster
To remove minlength and maxlength from both message title and message content add following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_form_fields', function( $fields ){
unset( $fields['message_title']['minlength'], $fields['message_title']['maxlength'], $fields['message_content']['minlength'], $fields['message_content']['maxlength'] );
return $fields;
});