woocommerce_payment_methods_list_item filter-hookWC 1.0

Usage

add_filter( 'woocommerce_payment_methods_list_item', 'wp_kama_woocommerce_payment_methods_list_item_filter', 10, 2 );

/**
 * Function for `woocommerce_payment_methods_list_item` filter-hook.
 * 
 * @param  $key ]         
 * @param  $payment_token 
 *
 * @return 
 */
function wp_kama_woocommerce_payment_methods_list_item_filter( $key ], $payment_token ){

	// filter...
	return $key ];
}
$key ]
-
$payment_token
-

Where the hook is called

wc_get_account_saved_payment_methods_list()
woocommerce_payment_methods_list_item
woocommerce/includes/wc-account-functions.php 373
$list[ $type ][ $key ] = apply_filters( 'woocommerce_payment_methods_list_item', $list[ $type ][ $key ], $payment_token );

Where the hook is used in WooCommerce

woocommerce/includes/wc-account-functions.php 401
add_filter( 'woocommerce_payment_methods_list_item', 'wc_get_account_saved_payment_methods_list_item_cc', 10, 2 );
woocommerce/includes/wc-account-functions.php 422
add_filter( 'woocommerce_payment_methods_list_item', 'wc_get_account_saved_payment_methods_list_item_echeck', 10, 2 );
woocommerce/packages/woocommerce-blocks/src/BlockTypes/Checkout.php 357
add_filter( 'woocommerce_payment_methods_list_item', [ $this, 'include_token_id_with_payment_methods' ], 10, 2 );
woocommerce/packages/woocommerce-blocks/src/BlockTypes/Checkout.php 362
remove_filter( 'woocommerce_payment_methods_list_item', [ $this, 'include_token_id_with_payment_methods' ], 10, 2 );