woocommerce_payment_gateway_get_saved_payment_method_option_html filter-hookWC 2.6.0

Filter the saved payment method HTML.

Usage

add_filter( 'woocommerce_payment_gateway_get_saved_payment_method_option_html', 'wp_kama_woocommerce_payment_gateway_get_saved_method_option_html_filter', 10, 3 );

/**
 * Function for `woocommerce_payment_gateway_get_saved_payment_method_option_html` filter-hook.
 * 
 * @param string             $html  HTML for the saved payment methods.
 * @param string             $token Token.
 * @param WC_Payment_Gateway $that  Payment gateway instance.
 *
 * @return string
 */
function wp_kama_woocommerce_payment_gateway_get_saved_method_option_html_filter( $html, $token, $that ){

	// filter...
	return $html;
}
$html(string)
HTML for the saved payment methods.
$token(string)
Token.
$that(WC_Payment_Gateway)
Payment gateway instance.

Changelog

Since 2.6.0 Introduced.

Where the hook is called

WC_Payment_Gateway::get_saved_payment_method_option_html()
woocommerce_payment_gateway_get_saved_payment_method_option_html
woocommerce/includes/abstracts/abstract-wc-payment-gateway.php 604
return apply_filters( 'woocommerce_payment_gateway_get_saved_payment_method_option_html', $html, $token, $this );

Where the hook is used in WooCommerce

Usage not found.