Skip to content

Instantly share code, notes, and snippets.

View adewaleolaore's full-sized avatar

Adewale Olaore adewaleolaore

View GitHub Profile
@adewaleolaore
adewaleolaore / Keybase.md
Created September 16, 2019 10:36
Keybase.md

Keybase proof

I hereby claim:

  • I am dagenius on github.
  • I am rmakenna618 (https://keybase.io/rmakenna618) on keybase.
  • I have a public key ASDSYpQuPJINdPnhJr9d6S7y8sa_Vz41_XDAChjl8DoDrAo

To claim this, I am signing this object:

<?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!
<?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!
<?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;