Created
August 20, 2014 10:14
-
-
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+
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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