Replies: 1
Hi, i’m the author of the conditional fields for cf7 plugin.
I’m trying to solve the problem where people get the invalid syntax error if the enter for example TO:[group-1]g1@email.com[/group-1]
I’ve been tracing the entire process of generating the error message, but there does not seem to be a filter or action hook in place to override the error message.
My suggestion would be to add a filter in WPCF7_ConfigValidator line 532
public function detect_invalid_mailbox_syntax( $section, $content, $args = '' ){
$content = apply_filters( 'wpcf7_filter_content_before_detect_invalid_mailbox_syntax', $content, $this);
...
}
Or maybe there is a more obvious place, or I’m missing something? I know you’re busy so no problem if you don’t have time to look into it. it’s not a big problem. Cheers!