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_Upcoming_Payment_Reminder::set_body_email()

Setup default notification body for email notifications.


Return Return

(string)


Top ↑

Source Source

File: includes/notifications/views/class.llms.notification.view.upcoming.payment.reminder.php

	private function set_body_email() {

		$mailer = llms()->mailer();

		$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
			// Translators: %s= The customer name.
			printf( __( 'Hello %s,', 'lifterlms' ), '{{CUSTOMER_NAME}}' );
		?>
		</p>
		<p>
		<?php
			// Translators: %1$s = The product title, %2$s The upcoming payment due date.
			printf( __( 'You will be charged for your subscription to %1$s on %2$s.', 'lifterlms' ), '{{PRODUCT_TITLE}}', '{{NEXT_PAYMENT_DATE}}' );
		?>
		</p>
		<h4>
		<?php
			// Translators: %s= The order ID.
			printf( __( 'Order #%s', 'lifterlms' ), '{{ORDER_ID}}' );
		?>
		</h4>
		<?php echo $mailer->get_table_html( $rows ); ?>
		<p><a href="{{ORDER_URL}}"><?php _e( 'Update Payment Method', 'lifterlms' ); ?></a></p>
		<?php
		return ob_get_clean();
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.