wpcf7_constant_contact_submit
Использование
add_filter( 'wpcf7_constant_contact_submit', 'wp_kama_wpcf7_constant_contact_submit_filter', 10, 3 ); /** * Function for `wpcf7_constant_contact_submit` filter-hook. * * @param $do_submit * @param $contact_form * @param $result * * @return */ function wp_kama_wpcf7_constant_contact_submit_filter( $do_submit, $contact_form, $result ){ // filter... return $do_submit; }
- $do_submit
- -
- $contact_form
- -
- $result
- -
Где вызывается хук
contact-form-7/modules/constant-contact/constant-contact.php 61-63
$do_submit = apply_filters( 'wpcf7_constant_contact_submit', $do_submit, $contact_form, $result );