Menu

af/form/email/after_send

Triggered after an email has been sent.

<?php

function after_email_send( $email, $form ) {
    // Do something with email
}
add_action( 'af/email/after_send/key=FORM_KEY', 'after_email_send', 10, 2 );

Modifiers

  • af/form/email/after_send Applies to all forms.
  • af/form/email/after_send/key=FORM_KEY Applies to forms with specific key.
  • af/form/email/after_send/id=FORM_ID Applies to forms with specific post ID.