MemberPress: Enabling Payment Receipt Email for Free Recurring Subscriptions

function mepr_capture_recurring_sub( $event ) { // Get the transaction data from the event $txn = $event->get_data(); // Send the transaction receipt email MeprUtils::send_transaction_receipt_notices( $txn ); } // Attach the ‘mepr_capture_recurring_sub’ function to the ‘mepr-event-subscription-payment-completed’ event. add_action( ‘mepr-event-transaction-completed’, ‘mepr_capture_recurring_sub’ );Continue reading