Skip to content

Instantly share code, notes, and snippets.

@sidharrell
Created October 24, 2013 17:19
Show Gist options
  • Select an option

  • Save sidharrell/7141370 to your computer and use it in GitHub Desktop.

Select an option

Save sidharrell/7141370 to your computer and use it in GitHub Desktop.
override payment notification email so it only goes out to primary attendee
function event_espresso_send_payment_notification($atts) {
do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, '');
global $org_options;
extract($atts);
if ($org_options['default_mail'] == 'Y') {
event_espresso_email_confirmations(array('attendee_id' => $attendee_id, 'send_admin_email' => 'false', 'send_attendee_email' => 'true', 'custom_data' => array('email_type' => 'payment', 'payment_subject' => $org_options['payment_subject'], 'payment_message' => $org_options['payment_message'])));
}
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment