WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::saved_payment_methods() public WC 2.6.0

Grab and display our saved payment methods.

{} It's a method of the class: WC_Payment_Gateway{}

Return

null. Nothing.

Usage

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

Changelog

Since 2.6.0 Introduced.

Code of WC_Payment_Gateway::saved_payment_methods() WC 5.5.2

<?php
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
}