Forked from LMNTL/pmpro_add_member_notification.php
Last active
September 19, 2019 14:46
-
-
Save femiyb/ec13a1346655bf79db0dddc77c4e31f1 to your computer and use it in GitHub Desktop.
Generate checkout email when using Add Member from Admin Add On for Paid Memberships Pro
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 | |
/* Generate checkout email when using Add Member from Admin Add On for Paid Memberships Pro | |
*/ | |
function pmpro_send_member_notification( $user_id ) { | |
$pmproemail = new PMProEmail(); | |
$pmproemail->sendCheckoutEmail( get_userdata( $user_id ) ); | |
} | |
add_action( 'pmpro_add_member_added', 'pmpro_send_member_notification', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment