WC_Payment_Gateway::payment_fields()publicWC 1.0

If There are no payment fields show the description if set. Override this in your gateway if you have some.

Метод класса: WC_Payment_Gateway{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->payment_fields();

Код WC_Payment_Gateway::payment_fields() WC 8.7.0

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.
	}
}