Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created August 20, 2014 10:14
Show Gist options
  • Save Pebblo/cba9c7862391589f28d0 to your computer and use it in GitHub Desktop.
Save Pebblo/cba9c7862391589f28d0 to your computer and use it in GitHub Desktop.
Exclude attendee's that have been cancelled from the attendee reports by default in EE3. Requires 3.1.37+
<?php //Please do not include the opening PHP tag
function espresso_exclude_cancelled_payment_status() {
return ' AND a.payment_status != "Cancelled"';
}
add_filter('espresso_attendee_report_payment_status_where', 'espresso_exclude_cancelled_payment_status');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment