Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Suggested code patch to allow form field validation

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Changing this filter to also pass $this will allow validation on a per form basis, here is the change:
    $result = apply_filters( ‘wpcf7_validate’, $result, $this );

    Exactly. Thanks for the suggestion. Let me ponder it for the next version.

    For the meantime, you can use $GLOBALS['wpcf7_contact_form'] instead of $cf7.

    Thanks for the consideration and alternative.

    Cheers,
    Dean.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Contact Form 7] Suggested code patch to allow form field validation’ is closed to new replies.