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 | |
function pw_edd_send_email_on_pending( $payment_id, $payment_data ) { | |
// grab the gateway so we can only send on email for specific gateways | |
$gateway = isset( $_POST['edd-gateway'] ) ? $_POST['edd-gateway'] : ''; | |
// TODO: replace "bacs" with your gateway ID | |
if( $gateway != 'bacs' ) | |
return; |