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 | |
// Action hooks: | |
add_action( 'eddtb_custom_main_items', 'eddtb_add_custom_main_items' ); | |
/** | |
* Easy Digital Downloads Toolbar: Add Custom Main Items | |
*/ | |
function eddtb_add_custom_main_items() { | |
// Your custom stuff here, you might only use the WP Toolbar / Admin Bar API here! |
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 | |
// Action hooks: | |
add_action( 'eddtb_custom_main_items', 'eddtb_add_custom_main_items' ); | |
/** | |
* Easy Digital Downloads Toolbar: Add Custom Main Items | |
*/ | |
function eddtb_add_custom_main_items() { | |
// Your custom stuff here, you might only use the WP Toolbar / Admin Bar API here! |
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; |