How to remove Minimum characters requirement in "Subject"


Home Forums Front End PM PRO How to remove Minimum characters requirement in "Subject"

This topic is: Not Resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14053
    VITTHAL AMBIKE
    Participant

    How to remove Minimum characters requirement in “Subject”

    Please guide

    #14056
    VITTHAL AMBIKE
    Participant

    and in addition , how to change it from Minimum 5 characters to 3 characters

    #14064
    Shamim Hasan
    Keymaster
    #14070
    VITTHAL AMBIKE
    Participant

    I am already using this code to minimize length of Message contents

    add_filter( ‘fep_form_fields’, ‘fep_cus_fep_form_fields’ );

    function fep_cus_fep_form_fields( $fields )
    {
    unset( $fields[‘message_content’][‘minlength’] );
    return $fields;
    }

    Now adding another code for title is not working. Site is getting offline

    “My other thought = You work great , you reply prompt, accurate, thanks for.”

    #14076
    Shamim Hasan
    Keymaster

    You cannot have multiple function as same. You can change function name OR use anonymous function.
    Add following code instead

    add_filter( 'fep_form_fields',function( $fields ){
        unset( $fields['message_title']['minlength'] );
        return $fields;
    });
    
Viewing 5 posts - 1 through 5 (of 5 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.