Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Notification_View_Payment_Retry::set_body_email()
Setup default notification body for email notifications
Description Description
Source Source
File: includes/notifications/views/class.llms.notification.view.payment.retry.php
private function set_body_email() { $mailer = LLMS()->mailer(); $table_style = sprintf( 'border-collapse:collapse;color:%1$s;font-family:%2$s;font-size:%3$s;Margin-bottom:15px;text-align:left;width:100%%;', $mailer->get_css( 'font-color', false ), $mailer->get_css( 'font-family', false ), $mailer->get_css( 'font-size', false ) ); $tr_style = 'color:inherit;font-family:inherit;font-size:inherit;'; $td_style = sprintf( 'border-bottom:1px solid %s;color:inherit;font-family:inherit;font-size:inherit;padding:10px;', $mailer->get_css( 'divider-color', false ) ); $rows = array( 'NEXT_PAYMENT_DATE' => __( 'Payment Due Date', 'lifterlms' ), 'PRODUCT_TITLE_LINK' => '{{PRODUCT_TYPE}}', 'PLAN_TITLE' => __( 'Plan', 'lifterlms' ), 'PAYMENT_AMOUNT' => __( 'Amount', 'lifterlms' ), ); ob_start(); ?><p><?php printf( __( 'Hello %s,', 'lifterlms' ), '{{CUSTOMER_NAME}}' ); ?></p> <p><?php printf( __( 'The automatic payment for your subscription to %1$s has failed. We\'ll automatically retry this charge on %2$s.', 'lifterlms' ), '{{PRODUCT_TITLE}}', '{{NEXT_PAYMENT_DATE}}' ); ?></p> <p><?php printf( __( 'To reactivate your subscription you can login to your account and %1$spay now%2$s.', 'lifterlms' ), '<a href="{{ORDER_URL}}">','</a>' ); ?></p> <h4><?php printf( __( 'Order #%s', 'lifterlms' ), '{{ORDER_ID}}' ); ?></h4> <table style="<?php echo $table_style; ?>"> <?php foreach ( $rows as $code => $name ) : ?> <tr style="<?php echo $tr_style; ?>"> <th style="<?php echo $td_style; ?>width:33.3333%;"><?php echo $name; ?></th> <td style="<?php echo $td_style; ?>">{{<?php echo $code; ?>}}</td> </tr> <?php endforeach; ?> </table> <p><a href="{{ORDER_URL}}"><?php _e( 'Update Payment Method', 'lifterlms' ); ?></a></p> <?php return ob_get_clean(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.10.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: