Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #28674

    I have found a usefull filter for the plugin contact-form-7. The filter helps to add the last visited page before the contact page. Is it possible, to add this filter to the regular enfold contact form? And how to do?

    The code:

    function getRefererPage( $form_tag ) {

    if ( $form_tag == 'referenzseite' ) {

    $form_tag[] = $_SERVER;

    }

    return $form_tag;

    }

    if ( !is_admin() ) {

    add_filter( 'wpcf7_form_tag', 'getRefererPage' );

    }

    #138298

    Hi,

    I think that its a little more than the default support covers, if it worked with cf7, why not use it?

    Regards,

    Josue

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘filter for contact form’ is closed to new replies.