woocommerce_payment_methods_types
Get My Account > Payment methods types
Usage
add_filter( 'woocommerce_payment_methods_types', 'wp_kama_woocommerce_payment_methods_types_filter' );
/**
* Function for `woocommerce_payment_methods_types` filter-hook.
*
* @param $array
*
* @return
*/
function wp_kama_woocommerce_payment_methods_types_filter( $array ){
// filter...
return $array;
}
- $array
- -
Changelog
| Since 2.6.0 | Introduced. |
Where the hook is called
woocommerce_payment_methods_types
woocommerce/includes/wc-account-functions.php 280-286
return apply_filters( 'woocommerce_payment_methods_types', array( 'cc' => __( 'Credit card', 'woocommerce' ), 'echeck' => __( 'eCheck', 'woocommerce' ), ) );