LLMS_Controller_Orders::transaction_failed( LLMS_Transaction $txn )
When a transaction fails, update the parent order’s status.
Parameters Parameters
- $txn
-
(LLMS_Transaction) (Required) Instance of the LLMS_Transaction.
Return Return
(void)
Source Source
File: includes/controllers/class.llms.controller.orders.php
* * @since 7.0.0 * * @link https://developer.wordpress.org/reference/hooks/wp_untrash_post_status/ * * @param string $new_status The new status of the post being restored. * @param int $post_id The ID of the post being restored. * @param string $previous_status The status of the post at the point where it was trashed. */ $new_status = apply_filters( 'llms_untrash_order_status', 'llms-pending', $post_id, $previous_status ); } return $new_status; } /** * When a transaction fails, update the parent order's status. * * @since 3.0.0
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.10.0 | Unknown. |
3.0.0 | Introduced. |