Back to list of all filter and action hooks for Fluid Checkout Lite.
Description #
Fires before the list of added coupon codes in the coupons section.
It triggers within the output buffer before any applied coupon codes are displayed, allowing you to add introductory content or headers.
Examples #
/**
* Add coupon codes header text
*/
function add_coupon_codes_header() {
if ( WC()->cart->get_coupons() ) {
echo '<div class="fc-coupon-codes__header">Applied coupon codes:</div>';
}
}
add_action( 'fc_substep_coupon_codes_text_before', 'add_coupon_codes_header', 10 );
