LLMS_Meta_Box_Order_Transactions::save( int $post_id )
Save method, processes refunds / records manual txns
Description Description
Parameters Parameters
- $post_id
-
(int) (Required) Post ID of the Order
Return Return
(void)
Source Source
File: includes/admin/post-types/meta-boxes/class.llms.meta.box.order.transactions.php
public function save( $post_id ) { $actions = array( 'llms_process_refund' => 'save_refund', 'llms_record_txn' => 'save_transaction', 'llms_resend_receipt' => 'resend_receipt', ); foreach ( $actions as $action => $method ) { if ( isset( $_POST[ $action ] ) ) { $this->$method( $post_id ); break; } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |