woocommerce_checkout_coupon_message filter-hookWC 1.0.0

Filter checkout coupon message.

Usage

add_filter( 'woocommerce_checkout_coupon_message', 'wp_kama_woocommerce_checkout_coupon_message_filter' );

/**
 * Function for `woocommerce_checkout_coupon_message` filter-hook.
 * 
 * @param string $message coupon message.
 *
 * @return string
 */
function wp_kama_woocommerce_checkout_coupon_message_filter( $message ){

	// filter...
	return $message;
}
$message(string)
coupon message.

Changelog

Since 1.0.0 Introduced.

Where the hook is called

In file: /templates/checkout/form-coupon.php
woocommerce_checkout_coupon_message
woocommerce/templates/checkout/form-coupon.php 35
wc_print_notice( apply_filters( 'woocommerce_checkout_coupon_message', esc_html__( 'Have a coupon?', 'woocommerce' ) . ' <a href="#" role="button" aria-label="' . esc_attr__( 'Enter your coupon code', 'woocommerce' ) . '" aria-controls="woocommerce-checkout-form-coupon" aria-expanded="false" class="showcoupon">' . esc_html__( 'Click here to enter your code', 'woocommerce' ) . '</a>' ), 'notice' );

Where the hook is used in WooCommerce

Usage not found.