Menu
Close menu

af/form/email/before_send

Triggered before an email is sent.

<?php

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

Modifiers

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