LLMS_Notification_Controller_Purchase_Receipt::action_callback( int $transaction = null )
Callback function called when a lesson is completed by a student
Parameters Parameters
- $transaction
-
(int) (Optional) Instance of a LLMS_Transaction.
Default value: null
Return Return
(void)
Source Source
File: includes/notifications/controllers/class.llms.notification.controller.purchase.receipt.php
public function action_callback( $transaction = null ) { $order = $transaction->get_order(); $this->user_id = $order->get( 'user_id' ); $this->post_id = $transaction->get( 'id' ); $this->send(); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.8.0 | Introduced. |