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


Top ↑

Return Return

(void)


Top ↑

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;

			}
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.