LLMS_Notification_Controller_Subscription_Cancelled::action_callback( obj $order = null, int $student_id = null )
Callback function, called upon student subscription cancellation
Parameters Parameters
- $order
-
(obj) (Optional) Instance of the LLMS_Order
Default value: null
- $student_id
-
(int) (Optional) WP User ID of the Student
Default value: null
Return Return
(void)
Source Source
File: includes/notifications/controllers/class.llms.notification.controller.subscription.cancelled.php
public function action_callback( $order = null, $student_id = null ) { $this->user_id = $student_id; $this->post_id = $order->get( 'id' ); $this->send(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.17.8 | Introduced. |