woocommerce_credit_card_type_labels хук-фильтрWC 1.0

Использование

add_filter( 'woocommerce_credit_card_type_labels', 'wp_kama_woocommerce_credit_card_type_labels_filter' );

/**
 * Function for `woocommerce_credit_card_type_labels` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_credit_card_type_labels_filter( $array ){

	// filter...
	return $array;
}
$array
-

Где вызывается хук

wc_get_credit_card_type_label()
woocommerce_credit_card_type_labels
woocommerce/includes/wc-core-functions.php 1560-1571
$labels = apply_filters(
	'woocommerce_credit_card_type_labels',
	array(
		'mastercard'       => _x( 'MasterCard', 'Name of credit card', 'woocommerce' ),
		'visa'             => _x( 'Visa', 'Name of credit card', 'woocommerce' ),
		'discover'         => _x( 'Discover', 'Name of credit card', 'woocommerce' ),
		'american express' => _x( 'American Express', 'Name of credit card', 'woocommerce' ),
		'cartes bancaires' => _x( 'Cartes Bancaires', 'Name of credit card', 'woocommerce' ),
		'diners'           => _x( 'Diners', 'Name of credit card', 'woocommerce' ),
		'jcb'              => _x( 'JCB', 'Name of credit card', 'woocommerce' ),
	)
);

Где используется хук в WooCommerce

Использование не найдено.