WC_Payment_Gateway::payment_fields()
Default payment fields display. Override this in your gateway to customize displayed fields.
By default this renders the payment gateway description.
Метод класса: WC_Payment_Gateway{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->payment_fields();
Список изменений
С версии 1.5.7 | Введена. |
Код WC_Payment_Gateway::payment_fields() WC Payment Gateway::payment fields WC 9.7.1
public function payment_fields() { $description = $this->get_description(); if ( $description ) { // KSES is ran within get_description, but not here since there may be custom HTML returned by extensions. echo wpautop( wptexturize( $description ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } if ( $this->supports( 'default_credit_card_form' ) ) { $this->credit_card_form(); // Deprecated, will be removed in a future version. } }