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()
Return Return
(int|false)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |