WC_Payment_Gateway::saved_payment_methods()
Grab and display our saved payment methods.
Method of the class: WC_Payment_Gateway{}
Hooks from the method
Return
null
. Nothing (null).
Usage
$WC_Payment_Gateway = new WC_Payment_Gateway(); $WC_Payment_Gateway->saved_payment_methods();
Changelog
Since 2.6.0 | Introduced. |
WC_Payment_Gateway::saved_payment_methods() WC Payment Gateway::saved payment methods code 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 }