wpcf7_before_send_mail хук-событие . CF7 1.0
Использование
add_action( 'wpcf7_before_send_mail', 'action_function_name_8615', 10, 3 ); function action_function_name_8615( $contact_form, &$abort, $that ){ // action... }
- $contact_form
- -
- &$abort
- -
- $that
- -
Где вызывается хук
wpcf7_before_send_mail
contact-form-7/includes/submission.php 448-452
do_action_ref_array( 'wpcf7_before_send_mail', array( $this->contact_form, &$abort, $this, ) );