WC_Payment_Gateway::saved_payment_methods()
Grab and display our saved payment methods.
Метод класса: WC_Payment_Gateway{}
Хуки из метода
Возвращает
null
. Ничего (null).
Использование
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->saved_payment_methods();
Список изменений
С версии 2.6.0 | Введена. |
Код WC_Payment_Gateway::saved_payment_methods() WC Payment Gateway::saved payment methods WC 8.7.0
public function saved_payment_methods() { $html = '<ul class="woocommerce-SavedPaymentMethods wc-saved-payment-methods" data-count="' . esc_attr( count( $this->get_tokens() ) ) . '">'; foreach ( $this->get_tokens() as $token ) { $html .= $this->get_saved_payment_method_option_html( $token ); } $html .= $this->get_new_payment_method_option_html(); $html .= '</ul>'; echo apply_filters( 'wc_payment_gateway_form_saved_payment_methods_html', $html, $this ); // @codingStandardsIgnoreLine }