Skip to content

Instantly share code, notes, and snippets.

@femiyb
Forked from LMNTL/pmpro_add_member_notification.php
Last active September 19, 2019 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save femiyb/ec13a1346655bf79db0dddc77c4e31f1 to your computer and use it in GitHub Desktop.
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
<?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