• Pankaj

    (@pankajtechilagmailcom)


    As I have old function to validate the fields like

    add_filter( ‘wpcf7_validate_text’, ‘your_validation_filter_func’, 10, 2 );

    function your_validation_filter_func() {
    $type = $tag[‘type’];
    $name = $tag[‘name’];
    if ( ‘Postcode’ == $name ) {
    $the_value = $_POST[$name];
    if($the_value==””) {
    $result[‘valid’] = false;
    $result[‘reason’][$name] = “Please fill the required fieldss.”;
    }
    }
    }

    Now in latest version the same function not working…

    Please help me regarding this…

    Thanks

    https://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘WPCF7_Validation How to use’ is closed to new replies.