wpcf7_mail_sent

wpcf7_mail_sent

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: contact-form-7.6.0

do_action('wpcf7_mail_sent') is found 1 times:

  • /includes/submission.php line 127
    				} elseif ( $this->mail() ) {
    					$this->set_status( 'mail_sent' );
    					$this->set_response( $contact_form->message( 'mail_sent_ok' ) );
    
    					do_action( 'wpcf7_mail_sent', $contact_form );
    				} else {
    					$this->set_status( 'mail_failed' );
    					$this->set_response( $contact_form->message( 'mail_sent_ng' ) );
    
    					do_action( 'wpcf7_mail_failed', $contact_form );
    				}
    

See this hook used in plugins:

Examples using wpcf7_mail_sent