LLMS_Notification_Controller_Upcoming_Payment_Reminder::send_test( string $type, array $data = array() )

Send a test notification to the currently logged in users


Parameters Parameters

$type

(string) (Required) Notification type [basic|email].

$data

(array) (Optional) Array of test notification data as specified by $this->get_test_data().

Default value: array()


Top ↑

Return Return

(int|false)


Top ↑

Source Source

File: includes/notifications/controllers/class.llms.notification.controller.upcoming.payment.reminder.php

	public function send_test( $type, $data = array() ) {

		if ( empty( $data['order_id'] ) ) {
			return;
		}

		$order         = llms_get_post( $data['order_id'] );
		$this->user_id = $order->get( 'user_id' );
		$this->post_id = $order->get( 'id' );

		return parent::send_test( $type );

	}


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.