WordPress at a glance
filter is not described

woocommerce_coupon_code filter-hook . WC 3.0.0

Format a coupon code.

Usage

add_filter( 'woocommerce_coupon_code', 'filter_function_name_8144' );
function filter_function_name_8144( $value ){
	// filter...

	return $value;
}
$value(string)
Coupon code to format.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wc_format_coupon_code()
woocommerce_coupon_code
woocommerce/includes/wc-formatting-functions.php 366
return apply_filters( 'woocommerce_coupon_code', $value );

Where in WP core the hook is used WooCommerce

woocommerce/includes/wc-core-functions.php 39
add_filter( 'woocommerce_coupon_code', 'html_entity_decode' );
woocommerce/includes/wc-core-functions.php 40
add_filter( 'woocommerce_coupon_code', 'wc_sanitize_coupon_code' );
woocommerce/includes/wc-core-functions.php 41
add_filter( 'woocommerce_coupon_code', 'wc_strtolower' );