woocommerce_payment_methods_types filter-hookWC 2.6.0

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

wc_get_account_payment_methods_types()
woocommerce_payment_methods_types
woocommerce/includes/wc-account-functions.php 260-266
return apply_filters(
	'woocommerce_payment_methods_types',
	array(
		'cc'     => __( 'Credit card', 'woocommerce' ),
		'echeck' => __( 'eCheck', 'woocommerce' ),
	)
);

Where the hook is used in WooCommerce

Usage not found.