D
D
DeeUs2018-04-05 09:59:52
WordPress
DeeUs, 2018-04-05 09:59:52

How to implement processing (validation) of a custom form tag (shortcode) in Contact form 7?

Added a shortcode (form field) using this function:
wpcf7_add_form_tag();
How now to add processing (rule for validation)?
Is there any way to do this without changing the code of the plugin itself?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Yanchevsky, 2018-04-05
@deniscopro

You can use filters wpcf7_validate_НАЗВАНИЕ_ТЕГАand wpcf7_validate_НАЗВАНИЕ_ТЕГА*.
Example .

S
Sergey, 2018-04-05
@baskserg

Use wpcf7_before_send_mail hook in functions.php before
sending

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question