LLMS_Payment_Gateway_Manual::before_view_order_table()

Output payment instructions if the order is pending.


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.gateway.manual.php

	public function before_view_order_table() {

		global $wp;

		if ( ! empty( $wp->query_vars['orders'] ) ) {

			$order = new LLMS_Order( intval( $wp->query_vars['orders'] ) );

			if (
				$order->get( 'payment_gateway' ) === $this->id &&
				in_array( $order->get( 'status' ), array( 'llms-pending', 'llms-on-hold', true ) )
			) {
				echo $this->get_payment_instructions();
			}
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.4.0 Allowed classes extended from this manual payment gateway class to display payment instructions.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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