Skip to content

Instantly share code, notes, and snippets.

@sidharrell
Created January 20, 2014 23:26
Show Gist options
  • Select an option

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

Select an option

Save sidharrell/8531452 to your computer and use it in GitHub Desktop.
email payment notification to primary attendee only
function event_espresso_send_payment_notification($atts) {
do_action('action_hook_espresso_log', __FILE__, __FUNCTION__, '');
global $org_options;
//Extract the attendee_id and registration_id
extract($atts);
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