woocommerce_coupon_code

woocommerce_coupon_code

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_coupon_code') is found 1 times:

  • /includes/wc-formatting-functions.php line 368
     * @param  string $value Coupon code to format.
     * @return string
     */
    function wc_format_coupon_code( $value ) {
    	return apply_filters( 'woocommerce_coupon_code', $value );
    }
    
    /**
     * Sanitize a coupon code.
     *
     * Uses sanitize_post_field since coupon codes are stored as post_titles - the sanitization and escaping must match.
    

See this hook used in plugins: