EDD Recurring – “New download purchase” email for renewals

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

// edd-recurring/includes/edd-subscription.php:493
add_action( ‘edd_subscription_post_renew’, function( $sub_id, $expiration, $sub_class, $payment_id ) {
$payment = edd_get_payment( $payment_id );

// easy-digital-downloads/includes/emails/functions.php:118
edd_admin_email_notice( $payment_id, $payment->get_meta() );
}, 10, 4 );

{{/gist}}