WC_Payment_Gateway::payment_fields()

If There are no payment fields show the description if set.


Description Description

Override this in your gateway if you have some.


Source Source

File: includes/abstracts/abstract-wc-payment-gateway.php

	public function payment_fields() {
		$description = $this->get_description();
		if ( $description ) {
			echo wpautop( wptexturize( $description ) ); // @codingStandardsIgnoreLine.
		}

		if ( $this->supports( 'default_credit_card_form' ) ) {
			$this->credit_card_form(); // Deprecated, will be removed in a future version.
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

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