wc_get_account_saved_payment_methods_list_item_echeck( array $item, WC_Payment_Token $payment_token )
Controls the output for eChecks on the my account page.
Description Description
Parameters Parameters
- $item
-
(Required) Individual list item from woocommerce_saved_payment_methods_list.
- $payment_token
-
(Required) The payment token associated with this method entry.
Return Return
(array) Filtered item.
Source Source
File: includes/wc-account-functions.php
function wc_get_account_saved_payment_methods_list_item_echeck( $item, $payment_token ) { if ( 'echeck' !== strtolower( $payment_token->get_type() ) ) { return $item; } $item['method']['last4'] = $payment_token->get_last4(); $item['method']['brand'] = esc_html__( 'eCheck', 'woocommerce' ); return $item; }
Changelog Changelog
Version | Description |
---|---|
2.6 | Introduced. |