Skip to content

Instantly share code, notes, and snippets.

@LMNTL
Last active January 12, 2021 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save LMNTL/0a4575a128c7b4800306ff31140b121d to your computer and use it in GitHub Desktop.
Save LMNTL/0a4575a128c7b4800306ff31140b121d 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 ) {
$pmproemail = new PMProEmail();
$pmproemail->sendCheckoutEmail( $user );
}
add_action( 'pmpro_add_member_added', 'pmpro_send_member_notification', 10, 2 )
@kimwhite
Copy link

needs a ; at the end of line 8

@kimwhite
Copy link

Forked and fixed so it sends to user with their name etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment