LLMS_Notification_Controller_Upcoming_Payment_Reminder::unschedule_upcoming_payment_reminder( LLMS_Order $order, string $type )
Cancels a scheduled upcoming payment reminder notification type
Description Description
Does nothing if no payments are scheduled.
Parameters Parameters
- $order
-
(LLMS_Order) (Required) Instance of the LLMS_Order which we'll schedule the payment reminder for.
- $type
-
(string) (Required) The notification type identifier.
Return Return
(void)
Source Source
File: includes/notifications/controllers/class.llms.notification.controller.upcoming.payment.reminder.php
public function unschedule_upcoming_payment_reminder( $order, $type ) { $action_args = $this->get_recurring_payment_reminder_action_args( $order, $type ); if ( as_next_scheduled_action( 'llms_send_upcoming_payment_reminder_notification', $action_args ) ) { as_unschedule_action( 'llms_send_upcoming_payment_reminder_notification', $action_args ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |